next up previous contents index
Next: Floating Point Data (Ew.d Up: Format Data Descriptors A Previous: General Rules for Numeric

Integer Data (Iw, Iw.m)

 

An integer value written with Iw appears right-justified in a field of w characters with leading blanks. Iw.m is similar but ensures that at least m digits will appear even if leading zeros are necessary. This is useful, for instance, to output the times in hours and minutes:

 
       NHOURS = 8 
       MINUTE = 6 
       WRITE(UNIT=*, FMT='(I4.2, I2.2)') NHOURS, MINUTE
The output record (with blanks shown explicitly) is:
 
  0806
On input Iw and Iw.m are identical. Note that an integer field must not contain a decimal point, exponent, or any punctuation characters such as commas.



Mario Storti
Wed Nov 4 19:32:56 ART 1998