- () Experssions in parentheses are evaluated first.
If an expression in parentheses contains an expression in parentheses, then the innermost parenthetical expression is evaluated 1st. Parenthetical expressions on the same level (i.e., not embedded) are evaluated left to right.
- *, /, % These operators are evaluated next.
If an expression has several of these operators on the same level (i.e., not embedded within parentheses), then they are evaluated left to right.
- +, - These operators are applied last.
If an expression has several of these operators on the same level (i.e., not embedded within parentheses), then they are evaluated left to right.