HP Fortran Programmer's Reference (September 2007)

I/O formatting
Edit descriptors
Chapter 9 251
Table 9-11 provides examples of the E and D edit descriptors on output.
EN and ES edit descriptors The EN and ES descriptors format floating-point values, using
engineering and scientific notation, respectively. They are similar in form to the E descriptor,
except:
The field produced by the EN descriptor has an exponent that is divisible by 3 and a
significand that is in the range 1 to 999.
The field produced by the ES descriptor has one digit before the decimal point.
Table 9-12 provides examples of the EN and ES edit descriptors on output.
Table 9-11 D and E edit descriptors: output examples
Descriptor Internal value Output
D10.3 +12.342
b0
.123D+02
E10.3E3 -12.3454 -.123E+002
E12.4 +12.34
bb0
.1234E+02
D12.4 -.00456532
b-0
.4565D-02
D10.10 +99.99913 **********
E11.5 +999.997
0
.10000E+04
E10.3E4
+.624 x 10
-30
.624E-0030
Table 9-12 EN and ES edit descriptors: output examples
Descriptor Internal value Output
EN12.3 +3.141
bbb
3.141E+00
ES12.3 +3.141
bbb
3.141E+00
EN12.3 +.00123
bbb
1.230E-03
ES12.3 +.00123
bbb
1.230E-03
EN12.3 -.7 -700.000E-03
ES12.3 -.7
bb
-7.000E-01
EN12.3 +1234.5
bbb
1.235E+03