( ) | operations enclosed in parentheses are evaluated first; nested parentheses are evaluated from the inside out |
^ | exponentiation |
* and / | multiplication and division, evaluated from left to right |
+ and - | addition and subtraction, evaluated from left to right |
Example