rem (<num1>,<num2>)
numeric
The remainder of one number divided by another (the modulo).
<num1>
Number to be divided.
<num2>
The divisor. The
answer will have the same sign as the divisor unless the divisor is 0,
in which case <num1>
will be returned.
This returns the value 4.
numeric remainder = rem(100,8)
This will print -1.
tell rem(-25,4)
This will print 1.
tell rem(25,-4)
This will print 5.
tell rem(5,0)
This will print 0.
tell rem(0,5)