The REM function returns the remainder after one numeric expression is divided by another.
REM returns the remainder of expression1 divided by expression2.
Example 8-67 Calculating a Remainder
This example illustrates the use of REM to find the remainder after
14 is divided by
5. The statement
SHOW REM(14 5)
produces the following result.