Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I wouldn't be surprised if NegativeZero got introduced to fix some other bug along the same lines involving a different function, and when fixing that bug they neglected to notice that it applies to expm1 as well. Math.expm1 is... a bit obscure. I could certainly see myself making the same mistake.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: