OpenUtilities Substation Help

Arithmetic Expressions

The design script language also has the standard arithmetic operators that enable you to create arithmetic expressions. All these operators are binary (except minus which is both binary and unary) and take integers and real numbers as operands. If an integer operand and a real number operand are used in the same expression, the integer is first converted to a real number and then the operation is performed. The result of an arithmetic expression is either an integer, if all the operands are integers, or a real number if any one of the operands is real. The following are the arithmetic operators and some examples of arithmetic expressions.

- Negative operator
+ Addition operator
- Subtraction operator
* Multiplication operator
/ Division operator


thickness * 2
color + 1
(size + 1.0)/2