MOD operator
Synopsis
This operator
performs a modulo (remainder) operation. You can also use the %
symbol to perform this operation.
Variations
Dividend MOD Divisor
Performs the modulo
operation.
Details |
Examples |
Details and examples
Parameters
Dividend
Supported types: Numeric.
Divisor
Supported types: Numeric.
Returns
Examples
1. |
Each of the following examples return alternatively 0 and 1 as
the loop executes.
Loop.Count MOD
2
Loop.Count %
2
|