There’s some truth to it. I’ve seen devs not clarify something from the designs with other stakeholders due to lack of social skills. You end up with something they implemented to the spec, but makes no sense it reality.
Interesting that Excel sees =6/2(1+2) as an invalid formula and will not calculate it (at least on mobile). =6/2*(1+2) returns 9 because it’s executing the division and multiplication left to right (6/2=3*3=9).
Google Sheets (mobile) does’t like it either and returns an error. =6/2*(1+2) also returns “9”.
This is not a math problem but a calculator engineering problem. Some solve the sub operations from right to left while other do it from left to right.
It’s not really a calculator engineering problem. If you don’t have time to read the entire blog you should definitely check out the section “But my calculator says…”. It’s actually about order of operations regarding implicit multiplication.
programming.dev
Top