Float and integer arithmetic follow two different paradigms
← indexFloat and integer arithmetic follow two different paradigms 2026-10-04 prog, math When working with floats, we tend to reuse the more familiar integer arithmetic patterns. More specifically, we always try to prevent a disaster rather than reacting to it. I keep noticing this pattern over and over again, and seeing that LLMs still get it wrong most of the time means that, either I am wrong, or everyone else is; it's obviously the latter, and I'm going to explain why. Integer arithmetic saf
Read full article →