Enform Plus Reference Manual
Clauses
Enform Plus Reference Manual—422684-001
5-11
Repeatable Edit Descriptors
Note that if the value to be printed is zero and you specify Iw.0, Enform Plus prints
blanks.
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:
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 Plus prints the value of the
target-item or by-item right-justified with leading blanks if necessary. If the
value is negative, Enform Plus 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 Plus prints that number of digits, using leading zeros if
necessary.
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
Fw.d[.m]