Y
Hacker News
new
|
ask
|
show
|
jobs
by
grogers
228 days 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
1 comments
diatone
228 days ago
That’s not real math though, that’s a quirk of floating point math.
link
mjmas
227 days ago
But NaN is also a quirk of IEEE754 floating pount math.
link