HP Fortran Programmer's Reference (September 2007)

I/O formatting
Edit descriptors
Chapter 9 257
Table 9-18 provides examples of the logical edit descriptor on input.
Output
The character T or F is right-justified in the output field, depending on whether the value of
the list item is true or false. Table 9-19 provides examples of the logical edit descriptor on
output.
M and N edit descriptors
Edit descriptors M and N are used to output numeric values in formats normally used for
currency.
For example, the N edit descriptor will output a value 1234.5 in the format 1,234.50; the M
edit descriptor will cause this same value to be output at $1,234.50.
Table 9-18 L edit descriptor: input examples
Descriptor Input field Value dtored
L1 T .TRUE.
L1 f .FALSE.
L6 .TRUE. .TRUE.
L7 .false. .FALSE.
L2 .t .TRUE.
L8
bbbb
TRUE .TRUE.
L3 ABC error: illegal character
Table 9-19 L edit descriptor: output examples
Descriptor Internal value Output (logical)
L5 false
bbbb
F
L4 true
bbb
T
L1 true T