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

196

16555 readers
1874 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 8 months ago* (last edited 8 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.