[Math] Why do addition and subtraction have the same precedence

arithmetic

According to the Wikipedia page of order of operations

Addition and subtraction have the same precedence.

However, $5 – 3 + 7\neq 5 – 10$. Therefore, the subtraction must be done before the addition. Is there a concept that I am not grasping?

Best Answer

They do have equal precedence. To be ultra-careful, read left to right: $$ 5-3+7 = (5-3)+7=9. $$ But, you don't have to, if you're careful. This is also $$ 5-3+7 = 5 + (-3+7)= 5 + 4=9. $$