Operators

Operators are just symbols that represent mathematical operations.
There is a strict order of precedence among the operators which means that certain operations are performed before others, assuming that parentheses are not used.
Operators that have a high precedence are evaluated first. Negation is always the first operator to be evaluated.
If you are not sure about the order in which operations are carried out then use parentheses to define the order.

OrderSymbolOperation
1-Negation
2%Percentage
3^Exponentiation
4/Division
4*Multiplication
5+Addition
5-Subtraction
6&String concatenation
7=Equal To
7<>Not Equal To
7<Less Than
7>Greater Than
7<=Less Than or Equal To
7>=Greater Than or Equal To

Notice that some operators have the same precedence. In this case they will be evaluated from left to right.


© 2024 Better Solutions Limited. All Rights Reserved. © 2024 Better Solutions Limited TopPrevNext