Survey Tabulation > Advanced expressions > Operators > Arithmetic operators
 
Arithmetic operators
You can use the arithmetic operators to perform arithmetic calculations on UNICOM Intelligence Data Model variables. The behavior of the operators depends on the data types of the variables involved. This topic provides examples of using the five basic arithmetic operators on UNICOM Intelligence Data Model variables of various types:
addition (+)
subtraction (-)
multiplication (*)
division (/)
modulus (Mod)
When an arithmetic operator is used on values of different data types, the UNICOM Intelligence Data Model Evaluate component automatically attempts to convert the values to the same data type. However, this is not always possible, and when it is, the results are not always sensible. This topic provides a table for each of the basic operators showing how the operator is used with the different data types. For each combination of data type, the table shows what operation is performed and the data type of the result.
The examples in this topic are based on the variables in the Museum sample data set.
See
+ operator
- operator
* operator
/ operator
Mod operator
See also
Operators