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

196

16459 readers
1723 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 7 months ago* (last edited 7 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.