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

I'm lacking sleep a bit here, but wouldn't NaN == NaN do the same trick?


Yes, if you take the false result to be the indication that you have a NaN. Either polarity comparison will work, if you correctly interpret its result.




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

Search: