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