When division is performed with the A or F correlatives, the result is always an integer. Remainders are suppressed. Therefore, to ensure that a result is returned with a remainder, scale the dividend by a multiple of 10 before dividing it, then apply a masked decimal code to insert the decimal point properly.
In this example, the A correlative first divides the contents of Attribute 4 by 8. The MR2 conversion then formats the result:
007 MR2 008 A ; (4 * "100") / "8" |
See Also
Using Correlatives as Conversions and Vice Versa
Using Special Functions with A and F Codes
Applying Conversion Operations Before Correlative Operations