Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
grogers
· 1y ago · 0 comments
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
Comments
[–]
diatone
1y ago
That’s not real math though, that’s a quirk of floating point math.
[–]
mjmas
1y ago
But NaN is also a quirk of IEEE754 floating pount math.