Guardian Procedure Calls Reference Manual (G06.25+)

Formatter Edit Descriptors
Guardian Procedure Calls Reference Manual522629-013
F-12
The E Edit Descriptor
The E Edit Descriptor
The exponential edit descriptor is used to display or interpret data in floating-point
form. It is usually used when data values have extremely large or extremely small
magnitude.
The E edit descriptor has one of the following forms:
E
w.d OR Ew.dEe
w an unsigned integer constant that defines the total field width (including the
exponent) 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
w characters.
d 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.
e an unsigned integer constant that defines the number of digits in the
exponent. If E
w.d is used, e takes the value 2.
The input field consists of an optional sign, followed by a string of digits optionally
containing a decimal point. A decimal point appearing in the input field overrides the
portion of the descriptor that specifies the decimal point location. However, if you omit
the decimal point, the rightmost
d digits of the string, with leading zeros assumed if
necessary, are interpreted as the fractional part of the value represented. The string of
digits can be of any length. Those beyond the limit of precision of the internal
representation are ignored. The basic form can be followed by an exponent in one of
the following forms:
Signed integer constant
E followed by zero or more blanks, followed by an optionally signed integer
constant
D followed by zero or more blanks, followed by an optionally signed integer
constant
An exponent containing a D is processed identically to an exponent containing an E.