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.

Table9-11providesexamplesoftheE and D edit descriptors on output.<br />

Table 9-11 D and E edit descriptors: output examples<br />

Descriptor Internal value Output<br />

D10.3 +12.342 b0.123D+02<br />

E10.3E3 -12.3454 -.123E+002<br />

E12.4 +12.34 bb0.1234E+02<br />

D12.4 -.00456532 b-0.4565D-02<br />

D10.10 +99.99913 **********<br />

E11.5 +999.997 0.10000E+04<br />

E10.3E4 +.624 x 10 -30 .624E-0030<br />

I/O formatting<br />

Edit descriptors<br />

ENandESeditdescriptors The EN and ES descriptors format floating-point values, using<br />

engineering and scientific notation, respectively. They are similar in form to the E descriptor,<br />

except:<br />

The field produced by the EN descriptor has an exponent that is divisible by 3 and a<br />

significand that is in the range 1 to 999.<br />

The field produced by the ES descriptor has one digit before the decimal point.<br />

Table9-12providesexamplesoftheEN and ES edit descriptors on output.<br />

Table 9-12 EN and ES edit descriptors: output examples<br />

Descriptor Internal value Output<br />

EN12.3 +3.141 bbb3.141E+00<br />

ES12.3 +3.141 bbb3.141E+00<br />

EN12.3 +.00123 bbb1.230E-03<br />

ES12.3 +.00123 bbb1.230E-03<br />

EN12.3 -.7 -700.000E-03<br />

ES12.3 -.7 bb-7.000E-01<br />

EN12.3 +1234.5 bbb1.235E+03<br />

Chapter 9 217

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

Saved successfully!

Ooh no, something went wrong!