Hacker News new | past | comments | ask | show | jobs | submit
> 1/2(-9.8) now equals -4.9 rather than -0.05102040816326530612

That should really be an error.

Order of operations is clear. Division and multiplication have the same order and are evaluated left to right.

-4.9 is unequivocally correct.

Yes, thank you, I passed elementary school. Mathematical correctness is not the sole criterion that matters in this world.
Especially for a deterministic tool like this. Do what I say, not what I mean. I want no helpful cleverness that resulted in this bug in the first place.
{"deleted":true,"id":50232812,"parent":50226195,"time":1792943180,"type":"comment"}
{"deleted":true,"id":50232819,"parent":50226195,"time":1792943217,"type":"comment"}