Returns the result of the modulo operator, the remainder after a division operation.

Parameters

dividend Number (required) - The number to be divided to find the remainder.

divisor Number (required) - The number to divide by.

Returns

Number

Examples

MOD(10, 3)

// returns 1
MOD(10, 10)

// returns 0

Did this page help you?