Integer Edit Descriptor; Fixed Format Edit Descriptor - Tandem ENFORM 058057 Reference Manual

Data management library
Table of Contents

Advertisement

Examples of the Integer Edit Descriptor. The following examples show the effect of the

integer edit descriptor.

Format
------
I7
I7.2
I7.6
I7.6

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
------
F10.4
F10.4
F10.4.3
"[FL'*'] F10.2"
058057 Tandem Computers Incorporated
Item Value
----------
100
-1
100
-1
Item Value
----------
123.4567
0.000123
-4.56789
123.4567
Clauses
AS Clause
Printed Item
------------
100
-01
000100
-000001
Printed Item
------------
123.4567
0.0001
-004.5679
****123.46
5–11

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Enform

Table of Contents