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

196

16557 readers
1631 users here now

Be sure to follow the rule before you head out.

Rule: You must post before you leave.

^other^ ^rules^

founded 1 year ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] Coreidan@lemmy.world 2 points 11 months ago (1 children)

PEMDAS evaluated from left to right. If you followed that you’d get 16. 1 is ignoring left to right.

[–] SmartmanApps@programming.dev 1 points 8 months ago

1 isn't ignoring anything. 16 can be arrived at by ignoring any one of multiple order of operations rules.