02.07.2013 Views

HP Fortran Programmer's Reference

HP Fortran Programmer's Reference

HP Fortran Programmer's Reference

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

I/O formatting<br />

Edit descriptors<br />

Table 9-8 B Edit descriptor: output examples (Continued)<br />

Descriptor Internal value Output<br />

BNandBZ(blank)editdescriptors<br />

The BN and BZ edit descriptors control the interpretation of embedded and trailing blanks in<br />

numeric input fields. The syntax of the blank edit descriptors is:<br />

BN<br />

B8 -27 ********<br />

BZ<br />

At the beginning of the execution of an input statement, blank characters within numbers are<br />

ignored except when the unit is connected with BLANK='ZERO' specified in the OPEN<br />

statement. BN and BZ override the BLANK= I/O specifier for the current READ statement. For<br />

more details about the BLANK= I/O specifier, see “OPEN” on page 376.<br />

If a BZ edit descriptor is encountered in the format specification, trailing and embedded<br />

blanks in succeeding numeric fields are treated as zeroes. The BZ edit descriptor remains in<br />

effect until a BN edit descriptor or the end of the format specification is encountered. If BN is<br />

specified, all embedded blanks are removed and the input number is right justified within the<br />

field width.<br />

The BN and BZ edit descriptors affect only I, B, O, F, D, E, EN, ES, G, andZ format descriptors<br />

during the execution of an input statement. The BN and BZ edit descriptors do not affect<br />

character and logical edit descriptors.<br />

Table 9-9 provides examples of the BN and BZ edit descriptors on input.<br />

Table 9-9 BN and BZ edit descriptors: input examples<br />

Descriptor<br />

214<br />

Input<br />

characters<br />

BN editing in<br />

effect<br />

I4 1b2b 12 1020<br />

F6.2 b4b.b2 4.2 40.02<br />

E7.1 5b.bE1b 5.0 x 10 1<br />

E5.0 3E4bb 3.0 x 10 4<br />

BZ editing in<br />

effect<br />

5.0 x 10 11<br />

3.0 x 10 400<br />

(overflow)<br />

Chapter 9

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

Saved successfully!

Ooh no, something went wrong!