3 ms·
I think you've got an interesting version of google. For me it says 25.6666 The problem is that the arithmetic operators only associate left to right if they'r
by niccl 5y ago
I think you've got an interesting version of google. For me it says 25.6666
The problem is that the arithmetic operators only associate left to right if they're the same precedence. The precedence is indicated by the old acronym BEDMAS: Brackets are highest, then Exponentiation, then Division and Multiplication, then Addition and Subtraction. https://en.wikipedia.org/wiki/Order_of_operations https://en.wikipedia.org/wiki/Order_of_operations
So the calculation as written in the original comment is
(7 + (9 × 8) - 2)/3 = (7 + 72 - 2) / 3 = 77 / 3 = 25.666...
- aklemm 5y agoAh, I thought “as written” meant you had written what they did as an example. I was googling your formatting, which of course is correct.