Previous topic |
Next topic |
Contents |
Contact z/OS |
Library |
PDF
Division z/OS TSO/E REXX Reference SA32-0972-00 |
|
For the division:
the following steps are taken: First the number yyy is extended
with zeros on the right until it is larger than the number xxxxx (with
note being taken of the change in the power of ten that this implies). Thus,
in this example, yyy might become yyy00. Traditional
long division then takes place. This might be written:
The length of the result (zzzz) is such that the rightmost z is at least as far right as the rightmost digit of the (extended) y number in the example. During the division, the y number is extended further as necessary. The z number may increase up to NUMERIC DIGITS+1 digits, at which point the division stops and the result is rounded. Following completion of the division (and rounding if necessary), insignificant trailing zeros are removed. |
Copyright IBM Corporation 1990, 2014
|