Server User Guides > Survey Tabulation > Advanced expressions > Operators > Arithmetic operators > Mod operator
 
Mod operator
Double
Long
Text
Categorical
Date
Double
Modulus Long
Modulus Long
Modulus1 Long
Not applicable
Not applicable
Long
Modulus Long
Modulus Long
Modulus1 Long
Not applicable
Not applicable
Text
Modulus1 Long
Modulus1 Long
Not applicable
Not applicable
Not applicable
Categorical
Not applicable
Not applicable
Not applicable
Not applicable
Not applicable
Date
Not applicable
Not applicable
Not applicable
Not applicable
Not applicable
See also Notes.
Example
Numeric variables
visits mod visits12
The modulus operator divides one numeric value by another and returns the remainder as result. This example uses the visits and visits12 numeric (Long) variables again. If visits has the value 8, and visits12 has the value 3, the return value is 2.
See also
Arithmetic operators