Scripting > 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--addition (+), subtraction (-), multiplication (*), division (/), and modulus (Mod)--on UNICOM Intelligence Data Model variables of various types.
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 are based on the variables in the Museum sample data set.
See
Addition (+) operator
Subtraction (-) operator
Multiplication (*) operator
Division (/) operator
Mod operator
Operators