MOD

Syntax:

N value MOD N divider

 

Return Value:

N result

 
Precedence:8
Description:

The modulus operator gives the remainder after dividing the first operand by the second. MOD always gives a positive number. MOD 0 produces an error

 

Example:

22 MOD 5 = 2
−1 MOD 7 = 6