March 2000
Intermediate to advanced
576 pages
18h 13m
English
Mod Keyword
Integer expressionmodInteger expression
The mod operator performs an integer modulus or
remainder operation. The result of A
mod
B is A
-
(A
div
B)
*
B.
If A and B are positive, the
modulus and the remainder are identical.
A
mod
B has
the same absolute value regardless of the sign of
A and B. The sign of
A
mod
B is
the same as the sign of A.
If B
=
0,
Delphi reports runtime error 3 (EDivByZero).
| Div Keyword |
Read now
Unlock full access