8.2.12 Mod Operator

Used to divide two expressions and return only the remainder.
Syntax
result = expression1 Mod expression2
Arguments
- result
- Any numeric variable.
- expression1
- Any numeric expression.
- expression2
- Any numeric expression.
Remarks
The modulus, or remainder, operator divides expression1 by expression2 (rounding floating-point numbers to integers) and returns only the remainder as result. For example, in the following expression, A (which is result) equals 5.
A = 19 Mod 6.7
If any expression is Null, result is also Null. Any expression that is Empty is treated as 0.
Copyright © 2000 Chili!Soft
|