MOD

Returns the remainder of one expression, representing a numerical value, divided by another expression representing a numerical value:
MOD(x1, x2) = x1 - INT(x1/x2) * x2

Format

MOD(x1, x2)

Arguments

 
x1
Any valid expression that evaluates to a real number.
x2
Any valid expression that evaluates to a real number.

Example

The following example illustrates the use of the MOD function:
 
Function
MOD(45,16)
Result
13