Guardian Procedure Calls Reference Manual
These examples illustrate input:
Data Element ValueFormatExternal Field
100E12.3| 0.100E+03|
100.05E12.5| 100.05 |
12.345E12.3| 12345|
The "|" character is used to denote the boundaries of the output field.
The F Edit Descriptor
The fixed-format edit descriptor is used to display or interpret data in fixed point form.
The F edit descriptor has these forms:
Fw.d.mORFw
an unsigned integer constant that defines the total field width and cannot exceed 255. The field processed
is the w characters starting at the current position. After the field is processed, the current position is advanced
by characters.
w
an unsigned integer constant that defines the number of digits that are to appear to the right of the decimal
point in the external field.
d
an unsigned integer constant that defines the number of digits that must be present to the left of the decimal
point on output
m
On input, the Fw.d edit descriptor is the same as the Ew.d edit descriptor.
The output field consists of blanks if necessary, followed by a minus if the internal value is negative
or an optional plus otherwise. This is followed by a string of digits that contains a decimal point
and represents the magnitude of the internal value, as modified by the established scale factor
and rounded to the d fractional digits. If the magnitude of the value in the output field is less than
one, there are no leading zeros except for an optional zero immediately to the left of the decimal
point. The optional zero must appear if there would otherwise be no digits in the output field. If
the Fw.d. m form is used, leading zeros are supplied if needed to satisfy the requirement of m digits
to the left of the decimal point. For example:
ResultData ValueFormat
| 123.4567|123.4567F10.4
| 0.0001|0.000123F10.4
| -004.5679|-4.56789F10.4.3
The "|" character is used to denote the boundaries of the output field.
The G Edit Descriptor
The general format edit descriptor can be used in place of either the E or the F edit descriptor,
since it has a combination of the capabilities of both.
The G edit descriptor has either of the forms:
Gw.dEeORGw.d
an unsigned integer constant that defines the total field width and cannot exceed 255. The field processed
is the characters starting at the current position. After the field is processed, the current position is advanced
by w characters.
w
an unsigned integer constant that defines the number of digits that are to appear to the right of the decimal
point in the external field.
d
an unsigned integer constant that defines the number of digits in the exponent, if one is present.e
Repeatable Edit Descriptors 1559