HP 3000 Manuals

Decimal Positions(Column 52) [ HP RPG/iX Reference Manual ] MPE/iX 5.0 Documentation


HP RPG/iX Reference Manual

Decimal Positions(Column 52) 

The decimal positions field specifies the number of decimal positions in
the Result Field.  This field is optional when the Result Field is
defined elsewhere in the program.  (If it is already defined, the number
that you enter must be the same as the original definition.)

          Table 8-21.  The Decimal Positions Field 

---------------------------------------------------------------------------------------------
|                   |                                                                       |
|     Column 52     |                              Description                              |
|                   |                                                                       |
---------------------------------------------------------------------------------------------
|                   |                                                                       |
|        0-9        | The number of decimal positions in the Result Field.                  |
|                   |                                                                       |
|       blank       | This is an alphanumeric or a numeric field defined elsewhere in the   |
|                   | program.                                                              |
|                   |                                                                       |
---------------------------------------------------------------------------------------------

If the field has no decimal positions, enter 0.  The number of decimal
positions can be larger or smaller than the number of decimals produced
by the operation, but must not be greater than the length of the Result
Field.  Data is aligned by decimal point when placed in the Result Field.
When the number of decimals is less than the result of the operation,
low-order digits are truncated.  When the number of decimals is greater
than the result of the operation, zeros fill the excess decimal
positions.



MPE/iX 5.0 Documentation