1 operators, 2 order of precedence – Campbell Scientific RTDAQ Software User Manual
Page 246

Section 8. Real-Time Monitoring and Control Software
Spaces must be used to delimit the predefined constants and
functions. Operators allow but do not require spaces.
NOTE
An expression can include data values from multiple
dataloggers.
NOTE
8.1.5.1 Operators
Operator
Description
( )
Prioritizes parts of an expression within the larger expression.
* Multiply
by
/ Divide
by
^
Raised to the power of
+ Add
- Subtract
= Equal
<> Not
equal
> Greater
than
< Less
than
>=
Greater than or equal to
<=
Less than or equal to
8.1.5.2 Order of Precedence
When processing mathematical expressions, the order of precedence is:
• Anything inside parentheses ( )
• Exponentiation ^
• Negation (unary) -
• Multiplication *, division /
• Modulo (remainder) MOD
• Addition +, subtraction -
When consecutive operators have the same priority, the expression evaluates
from left to right. This means that an expression such as a-b-c is evaluated as
(a-b)-c.
8-12