Remainder from division
modulo expression1 expression2
remainder expression1 expression2
expression1 % expression2
Remainder from the integer division of expression1 by expression2.
Example:
print modulo 5 2
print 5 % 2.5
print -5 % 2
Output:
1
0
-1
See also:
Table of Content