
Originally Posted by
jansky
di ko rin mahintay sagot ni OB
Summary
There are five arithmetic operators: ^, *, /, +, and -.
Exponentiation (^) is at the highest level of precedence, multiplication (*) and division (/) are at a lower level of precedence, and addition (+) and subtraction (-) are at an even lower level of precedence.
In the absence of parentheses, operators at a higher level of precedence are performed before operators at a lower level of precedence.
In the absence of parentheses, multiplication and division are performed from left to right, as are addition and subtraction.
Parentheses can be used to explicitly control the order of evaluation of an expression.