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, MINUTEThe output record (with blanks shown explicitly) is:
0806On 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.