Function: rem

Syntax

rem (<num1>,<num2>)

Type

numeric

Returns

The remainder of one number divided by another (the modulo).

Parameters

Examples

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)