I was asked if what is the basis of MDAS rule. (multiplication, division, addition, subtraction). Will these operations be followed at all times, or can it be changed in some cases?
- Anybody can ask a question
- Anybody can answer
- The best answers are voted up and rise to the top
It equally can be DMAS, DMSA and MDAS. The point is multiplication and division always have higher precedence over addition and subtraction unless there are parantheses. Evaluating a subtraction before or after an addition doesn't change the value of the result. Same thing for multiplication and division.