Navigation: Language Reference > Operators > Arithmetic >
a mod b
a mod b returns the signed remainder after division:
a mod b = a - trunc(a / b) *b
a
b
10
5
0
9.9
4.9
-8
2
-7.9
-1.9
-2
a and b must be scalars.