Quick Reference: Operators
Operators are mathematical and logical words and symbols you can use in an expression. The operators are each described in detail later in this section. For reference, they are listed here by category.
Mathematical Operators
Operator | Behavior |
---|---|
+, plus | addition |
\-, minus | subtraction |
\*, times, multiplied by | multiplication |
/, divided by | division |
^ | exponentiation (raise to a power) |
squared | raise to the second power |
to the power of | raise to the power specified |
cubed | raise to the third power |
%, percent | percent |
div | integer division |
rem | integer remainder |
modulo, mod | mathematical modulo |
is a multiple of, is divisible by | test for exact multiple of a number |
rounded to | round to a number of decimal places |
rounded to nearest | round to the nearest multiple of a value |
Comparison Operators
Logical Operators
Operator | Behavior |
---|---|
and | logical and |
and if | short-circuit logical and |
or | logical inclusive or |
or if | short-circuit logical inclusive or |
not | logical negation |