Modulo %

Operator: %

circle-info

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.

circle-check
chevron-rightnumber1 % number2hashtag

37 % 7 => 2

25 % 0 => NaN (not a number)

25 % '1d' => expression type mismatch

Last updated

Was this helpful?