MOD

Use the MOD script function to return the remainder of a division.

Syntax

MOD (Operand1, Operand2)

Parameters

Examples

In the following example, the function returns the result 1:

:SET &rest# = MOD(10,3)

In the following example, the function returns the result 10:

:SET &rest# = MOD(10,44)

See also:

seealso

Arithmetic Calculations in Scripts