Was this helpful?
Arithmetic Operators
Arithmetic operators are used to combine numeric expressions arithmetically to form other numeric expressions.
The arithmetic operators (in order of precedence) are as follows:
Arithmetic Operator
Description
+ and -
Positive, negative (unary)
**
Exponentiation (binary)
* and /
Multiplication, division (binary)
+ and -
Addition, subtraction (binary)
Unary operators group from right to left, while binary operators group from left to right. Use the unary negative (-) to reverse the algebraic sign of a value.
To force a desired order of evaluation, use parentheses. For example:
(job.lowsal + 1000) * 12
is an expression in which the parentheses force the addition operator (+) to take precedence over the multiplication operator (*).
Last modified date: 11/09/2022