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
[-] synae@lemmy.sdf.org 2 points 11 months ago* (last edited 11 months ago)

PEMDAS is actually (PE)(MD)(AS). Those that are grouped together have equal precedence and are evaluated left to right.

8 / 2 * (2+2)

8 / 2 * 4

4 * 4

16

Edit to fix formatting, maybe?

[-] SmartmanApps@programming.dev 2 points 8 months ago

8 / 2 * (2+2)

When you added the multiply you changed the answer, because the (2+2) is now in the numerator instead of in the denominator.

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

196

16563 readers
1883 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