02.07.2013 Views

HP Fortran Programmer's Reference

HP Fortran Programmer's Reference

HP Fortran Programmer's Reference

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Table 9-18 provides examples of the logical edit descriptor on input.<br />

Table 9-18 L edit descriptor: input examples<br />

Descriptor Input field Value dtored<br />

L1 T .TRUE.<br />

L1 f .FALSE.<br />

L6 .TRUE. .TRUE.<br />

L7 .false. .FALSE.<br />

L2 .t .TRUE.<br />

L8 bbbbTRUE .TRUE.<br />

L3 ABC error: illegal character<br />

Output<br />

I/O formatting<br />

Edit descriptors<br />

The character T or F is right-justified in the output field, depending on whether the value of<br />

the list item is true or false. Table 9-19 provides examples of the logical edit descriptor on<br />

output.<br />

Table 9-19 L edit descriptor: output examples<br />

Descriptor Internal value Output (logical)<br />

L5 false bbbbF<br />

L4 true bbbT<br />

L1 true T<br />

MandNeditdescriptors<br />

Edit descriptors M and N are used to output numeric values in formats normally used for<br />

currency.<br />

For example, the N edit descriptor will output a value 1234.5 in the format 1,234.50; the M<br />

edit descriptor will cause this same value to be output at $1,234.50.<br />

Chapter 9 223

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!