Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

format I0

Status
Not open for further replies.

ya0037

Programmer
Oct 7, 2010
30
DE
Hi every body,

I could not find any document about format I0 in write statement.
Does any of you know any document about it. In all documents it said that

Iw.m

An integer with width w, and optionally a minimum number of digits m (adding zeroes on the left if needed).

almost all of them tell that w is a positive number, but when you use i0 it will take the number format, so it is a very good choice in program when you do not know number format and it changes, so you can use i0 instead of guessing the maximum and using something like i10, ....


Am I right, if you know some references please give me.

Thanks
 
In F2003, the width may be negative with the edit descriptors I, B , O, Z and F. It must be strictly positive with others like E, EN, ES, G.

I don't remember whether I0 was already authorized by F95. But I use it for a long time and it is accepted by all the compilers I use today (gcc, g95, intel, nag, sun).

Here is a draft of F2003 specifications


François Jacq
 
In F2003, the width may be negative with the edit descriptors I, B , O, Z and F. It must be strictly positive with others like E, EN, ES, G.

I correct myself : I wanted to write "zero" instead of "negative". I really don't know why I wrote "negative"... Very strange !

François Jacq
 
I0 was authorized in F95 - it was one of the changes from F90.

The problem I find with I0 is trying to find it on the net. Even when you specify "I0", the search engines try to be clever and look for IO or I/O.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top