422
submitted 1 year ago by Toes@ani.social to c/196@lemmy.blahaj.zone
you are viewing a single comment's thread
view the rest of the comments
[-] agamemnonymous@sh.itjust.works 3 points 1 year ago

P E M D A S

vs

P E M/D A/S

The latter is correct, Multiplication/Division, and Addition/Subtraction each evaluate left to right (when not made unambiguous by Parentheses). I.e., 6÷2×3 = 9, not 1. That said, writing the expression in a way that leaves ambiguity is bad practice. Always use parentheses to group operations when ambiguity might arise.

this post was submitted on 03 Dec 2023
422 points (100.0% liked)

196

16713 readers
2314 users here now

Be sure to follow the rule before you head out.

Rule: You must post before you leave.

^other^ ^rules^

founded 2 years ago
MODERATORS