Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
z_open
· 7mo ago · 0 comments
Why is that NaN handling sensible? I don't think it makes sense to say log(-1) equals log(-2). Mathematically it isn't true and your implementation would say it's true only because of limitations in IEEE754.
Comments
[–]
xigoi
7mo ago
Mathematically it’s also not true that 2³⁰⁹ = +∞. You simply can’t expect correct results from floats.