top | item 45766262

(no title)

grogers | 4 months ago

Doesn't "1 + x == 2 + x" evaluate to true for any x with large enough magnitude? In general we should expect identities that hold true in "real" math to not hold in FP

discuss

order

diatone|4 months ago

That’s not real math though, that’s a quirk of floating point math.

mjmas|4 months ago

But NaN is also a quirk of IEEE754 floating pount math.