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
[–] Coreidan@lemmy.world 1 points 11 months ago (2 children)

No. Order of operations is left to right, not right to left. 1 is wrong.

[–] 50MYT@aussie.zone 1 points 11 months ago (3 children)

Pemdas.

Multiplication comes before division.

1 is the correct answer.

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

1 is the correct answer, but it's because Brackets comes before Division - there is no Multiplication in this problem.

[–] kryptonianCodeMonkey@lemmy.world 1 points 11 months ago* (last edited 11 months ago)

That's wrong. Multiplication and division have equal precedence, same as addition and subtraction. You do them left to right. PEMDAS could be rewritten like PE(MD)(AS). After parentheses and exponents, it"s Multiplication and division together, then addition and subtraction together. They also teach BODMAS some places, which is "brackets, order, division and multiplication, addition and subtraction" Despite reversing the division and multiplication, it doesn't change the order of operations. They have the same priority, so they are just done left to right. PEMDAS and BODMAS are the different shorthand for the same order of operations.

[–] 0ops@lemm.ee 0 points 11 months ago (1 children)

There's an argument to be made that implicit multiplication comes before division, resulting in the answer 1, but all multiplication? That's wrong, full-stop. You calculate (explicit) multiplication and division in one step, left to right. Reason being that division is technically just multiplying by the reciprocal.

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

Order of operations is left to right

Order of operations is BEDMAS, THEN left to right within each operator.

1 is wrong

1 is the only correct answer.