ENFORM Reference Manual
AS Clause
Clauses
058057 Tandem Computers Incorporated 5–11
Examples of the Integer Edit Descriptor. The following examples show the effect of the
integer edit descriptor.
Format Item Value Printed Item
------ ---------- ------------
I7 100 100
I7.2 -1 -01
I7.6 100 000100
I7.6 -1 -000001
Fixed Format Edit Descriptor
The fixed format edit descriptor specifies a fixed point display format. The syntax is:
F
w
.
d
[.
m
]
w
is an unsigned integer that defines the total width of the target-item or by-item
value.
d
is an unsigned integer that defines the number of digits that are to appear to the
right of the decimal point.
m
is an unsigned integer that defines the number of digits that are to appear to the
left of the decimal point.
When you specify the fixed format edit descriptor, ENFORM prints the value of the
target-item or by-item right-justified with leading blanks if necessary. If the value is
negative, ENFORM prints a minus sign before the first digit. Both the minus sign and
the decimal point occupy one position of the format; therefore, w must be wide enough
to accommodate the total size of the output field including the minus sign and the
decimal point. If w is not wide enough, an overflow condition occurs.
If you specify m, ENFORM prints that number of digits using leading zeros if
necessary.
Examples of the Fixed Format Edit Descriptor. The following examples show the effect of
the fixed format edit descriptor.
Format Item Value Printed Item
------ ---------- ------------
F10.4 123.4567 123.4567
F10.4 0.000123 0.0001
F10.4.3 -4.56789 -004.5679
"[FL'*'] F10.2" 123.4567 ****123.46