Operator: %
The modulo operator % gives the remainder of a division.
%
WIKI: http://en.wikipedia.org/wiki/Modulo_operationarrow-up-right
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
37 % 7
25 % 0 => NaN (not a number)
25 % 0
25 % '1d' => expression type mismatch
25 % '1d'
Last updated 3 years ago
Was this helpful?