Remainder Handling

If the division results in a remainder, this is available at the double word output REST. The result of the division is always rounded down if a remainder occurs.

Example:

3 : 3 = 1 Remainder 0

4 : 3 = 1 Remainder 1

5 : 3 = 1 Remainder 2

6 : 3 = 2 Remainder 0

As the remainder is available at the output REST, the user can compare this to the divisor and can round the result at output A according to his own requirements.

Example:

Remainder > divisor/2 → round up the result at output A.