Modulo %

Operator: %

The modulo operator % gives the remainder of a division.

WIKI: http://en.wikipedia.org/wiki/Modulo_operation

This function is NOT SQL compatible. For more information about SQL compatibility, see our documentation.

Returns a number that is the remaining result after number1 is divided by number2.

number1 % number2

37 % 7 => 2

25 % 0 => NaN (not a number)

25 % '1d' => expression type mismatch

Last updated