InPhase277
- Joined Feb 15, 2018
- 23
No. I said "...as they appear." and 64/4 appears first.So, according to your description, the following expression
X = 64 / 4 * 8
should yield a value of 2.
The multiplication appears after the division.You then say Multiplication as they appear. That means it becomes
X = 64 / (4 * 8)
That's what I would expect and that's what I stated. The "...as they appear." means exactly that.But the universally (as far as I am aware) agreed upon rules for order of operations state that multiplication and division are of the same precedence and are left associative and that, likewise, addition and subtraction are of the same, albeit lower, precedence and also left associative.
Thus
X = 64 / 4 * 8 = (64 / 4) * 8 = 128