4D v16.3Mod |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D v16.3
Mod
Mod
The Mod command returns the remainder of the Integer division of number1 by number2. Notes:
You can also use the % operator to calculate the remainder (see Numeric Operators). WARNING: The % operator returns valid results with Integer and Long Integer expressions. To calculate the modulo of real values, you must use the Mod command. The following example illustrates how the Mod function works with different arguments. Each line assigns a number to the vlResult variable. The comments describe the results: vlResult:=Mod(3;2) ` vlResult gets 1
See also
|
PROPERTIES
Product: 4D HISTORY
Created: < 4D v6 ARTICLE USAGE
4D Language Reference ( 4D v16) |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||