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

196

16269 readers
3072 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
[–] SmartmanApps@programming.dev 1 points 6 months ago* (last edited 6 months ago) (1 children)

No, 8 / 2 happens before 2 * 4

That's (2x4). Doing division before brackets goes against the order of operations rules.