PEMDAS rule | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

PEMDAS rule

why (6/3*2) don’t follow PEMDAS rule?Acc. to rule answer should be 1.0 but to results 4.0

15th Jun 2019, 12:04 PM
Sahil Rana
Sahil Rana - avatar
2 Answers
+ 9
* and / have the same precedence. Expressions containing operators with the same precedence are evaluated from the left to the right Btw, PEMDAS doesn't mean that multiplication comes before division. In fact they have the same precedence and are evaluated from left to right. PEMDAS isn't different from PEDMAS or "PEDMSA". It's just that the last one isn't used because nobody can pronounce it
15th Jun 2019, 12:24 PM
Anna
Anna - avatar
+ 6
They should have called it PE(MD)(AS) or something.
15th Jun 2019, 12:37 PM
Sonic
Sonic - avatar