4 ms·
I'm really sorry, but this is distressing me no end: It should be (((7 + 9) x 8) -2) / 3 = 42. As written, it equals 25.6666...
by niccl 5y ago
I'm really sorry, but this is distressing me no end: It should be (((7 + 9) x 8) -2) / 3 = 42. As written, it equals 25.6666...
- aklemm 5y agoSeems right to me. Google agrees. What am I missing?
- niccl 5y agoI 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.
- 8bitsrule 5y agoI've been told that (-80538738812075974)^3 + (80435758145817515)^3 + (12602123297335631)^3 = 42