HP Fortran Programmer's Reference (September 2007)

I/O formatting
Edit descriptors
Chapter 9256
Table 9-17 provides examples of the integer edit descriptor on output.
L (Logical) edit descriptor
The L edit descriptor defines a field for logical data. Its syntax is:
[
r
]L[
w
]
where:
r
is a positive integer constant, specifying the repeat factor.
w
is a positive integer constant, specifying the field width.
The I/O list item corresponding to an L edit descriptor must be of type logical, short logical, or
byte.
Input
The field width is scanned for optional blanks followed by an optional decimal point, followed
by T (or t) for true or F (or f) for false. The first nonblank character in the input field
(excluding the optional decimal point) determines the value to be stored in the declared logical
variable. It is an error if the first nonblank character is not T, t, F, f, or a period(.).
Table 9-17 I edit descriptor: output examples
Descriptor Internal value Output
I4 +452.25
b
452
I2 +6234 **
I3 -11.92 -11
I5 -52
bb
-52
I10 123456.5
bbbb
123456
I6.3 3
bbb
003
I3.0 0
bbb
I3 0
bb
0