Was this helpful?
Arithmetic
Arithmetic operators are used to combine numeric expressions arithmetically to form other numeric expressions. Valid arithmetic operators are (in descending order of precedence):
Operator
Description
+ and -
plus and minus (unary)
**
exponentiation (binary)
* and /
multiplication and division (binary)
+ and -
addition and subtraction (binary)
Unary operators group from right to left and binary operators group from left to right. You can use the unary minus (-) 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: 06/10/2024