Use this field-level keyword to print a number in a floating-point field in fixed decimal notation.
This keyword has no parameters.
When you use FLTFIXDEC, the floating-point number is first converted to the equivalent number with an exponent of zero. If the resulting number (digits and exponent) fits in the field defined by the length and decimal positions values, the number is printed with the exponent suppressed and aligned at the decimal point. If the number does not fit in the field, the number prints in standard floating-point form, n.nnnnnnE+nnn. When the FLTFIXDEC keyword is specified, the length of the field is the DDS length plus two (the sign and the decimal point). The minimum length of the field is six.
Option indicators are not valid for this keyword.
The following example shows how to specify the FLTFIXDEC keyword.
|...+....1....+....2....+....3....+....4....+....5....+....6....+....7....+....8 A R RECFMT1 A FIELD1 1OF 3 1 2FLTFIXDEC A FLTPCN(*DOUBLE) A
Output number | Printed as |
---|---|
-4.99994321000000E-004 | '-4.0000E-004' |
-5.00010000000000E-004 | ' -0.001' |
-2.69123400000000E-002 | ' -0.027' |
-0.00000000000000E+000 | ' 0.000' |
0.00000000000000E+000 | ' 0.000' |
2.71828182845900E+003 | ' 2718.282' |
3.14159000000000E-052 | ' 3.14163-052' |
9.87654321012345E+006 | ' 9876543.210' |
9.99999999960000E+006 | ' 1.0000E+007' |