Obtains the remainder (modulus) of a division operation.
Mod ( x, y )
Argument |
Description |
---|---|
x |
The number you want to divide by y |
y |
The number you want to divide into x |
The datatype of x or y, whichever datatype is more precise. If any argument’s value is null, Mod returns null.
This statement returns 2:
Mod(20, 6)
This statement returns 1.5:
Mod(25.5, 4)
This statement returns 2.5:
Mod(25, 4.5)
Mod method for DataWindows in the DataWindow Reference or the online Help