Keyword: MOD
The mod keyword is a modulus operator that can be applied to integer types. The result of the expression "A mod B" is an integer type and is defined to be the value such that:
(1) the sign of (A mod B) is the same as the sign of B, and
(2) abs (A mod B) < abs (B), and
(3) (A mod B) = (A * (B - N)) for some integer N.
LRM
7.2
See also