Order of computation
 

( ) Parentheses
^ Exponentiation
- (Negation)
* Multiplication
/ division
MOD - The whole number portion of a remainder in a division.
+ Addition
- Subtraction
& String Concatanation

the order of computations :

Example 1
intTotal = 2 * 5 ^ 2 + 3 * 5 + 7
intTotal = 2 * 25 + 3 * 5 + 7
intTotal = 50 + 3 * 5 + 7
intTotal = 50 + 15 + 7
intTotal = 65 + 7
intTotal = 72

Example 2

Total = 10 + 15 * 2 / 4 ^ 2 - (2 + 3)
Total = 10 + 15 * 2 / 4 ^ 2 -(5)
Total = 10 + 15 * 2 / 16 -(5)
Total = 10 + 15 * 2 / 16 - 5
Total = 10 + 30 / 16 - 5
Total = 10 + 1.875 - 5
Total = 11.875 - 5
Total = 6.8

(c) Shilpa Sayura Foundation 2006-2017