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

NaNs cannot be extended in any way, in many interpreters NaN is used to "hide" pointers in 64 bit floats using the 52 free bits in NaN values.

IMO NaN should have never existed, like signed zeros, (I am more agnostic about [signed] Infinity) I think that they were implemented in IEEE 754 because the encoding had space left for them.

I not an expert in any way on this this is literally a personal opinion.



Right. I was thinking that maybe NaN in JS was more than just the IEEE version we see in languages closer to the metal.




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

Search: