Fields / Formula / function
Mod
The remainder of dividing a number by the divisor.
Syntax
Mod(number, divisor)Returns
Number or null.
Example
Mod(Quantity, 2) = 0Notes and limitations
The remainder has the divisor's sign, as in spreadsheets: Mod(7, 3) is 1, Mod(-7, 3) is 2 and Mod(7, -3) is -2. That keeps cycles from going negative: Mod(DaysBetween(TODAY(), StartDate), 7) is always 0 to 6. Mod(x, 0) is a formula error (Division by zero). Takes Numbers only; a blank gives null. Money stays money: Mod(Amount, 100).