Order of operations
The order of operations is the agreed sequence for evaluating an expression so that everyone gets the same value:
- Parentheses
- Exponents
- Multiplication and division, left to right
- Addition and subtraction, left to right
Without a fixed order, 2 + 3 × 4 could mean 20 or 14. The order makes it unambiguously 14.