[<<Previous Entry]
[^^Up^^]
[Next Entry>>]
[Menu]
[About The Guide]
mod Modulus (Remainder) Operator for Integer Values
<exp1> mod <exp2>
The MOD operator performs integer division, but returns the remainder;
the quotient is discarded. For example, 22 mod 5 is 2.
<exp1> Any integer expression.
<exp2> Any integer expression, but must not be zero (0),
otherwise, a runtime error will occur.
-------------------------------- Example ---------------------------------
I := 22 mod 4; { I = 2 }
I := 23 mod 4; { I = 3 }
I := 24 mod 4; { I = 0 }
See Also:
div
/
This page created by ng2html v1.05, the Norton guide to HTML conversion utility.
Written by Dave Pearson