420
submitted 11 months 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
[-] ICastFist@programming.dev 25 points 11 months ago

The problem is that there's no "external" parentheses to really tell us which is right: (8 / 2) * 4 or 8 / (2 * 4)

The amount of comments here shows how much debate this "simple" thing generates

[-] EvokerKing@lemmy.world 20 points 11 months ago

Afaik the order of operations doesn't have distributive property in it. It would instead simply become multiplication and would go left to right and would therefore be 16.

[-] SmartmanApps@programming.dev 1 points 7 months ago

Afaik the order of operations doesn’t have distributive property in it

The Distributive Law applies to all bracketed terms that have a coefficient. It's literally the first step in solving brackets.

load more comments (7 replies)
this post was submitted on 03 Dec 2023
420 points (100.0% liked)

196

16450 readers
1858 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