this post was submitted on 03 Dec 2023
420 points (99.8% liked)
196
16597 readers
1733 users here now
Be sure to follow the rule before you head out.
Rule: You must post before you leave.
founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
By that logic: 8-2+4=2
Of course, it could be kind of ambiguous, but typical convention gives multiplication/division the same priority, as it does addition/subtraction.
And in general, you need to go left to right when dealing with division and subtraction, if other operations have the same priority.