Hacker News new | ask | show | jobs
by z_open 53 days ago
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.
1 comments

Mathematically it’s also not true that 2³⁰⁹ = +∞. You simply can’t expect correct results from floats.