Also remember that NaN is represented in multiple ways bitwise:
https://en.wikipedia.org/wiki/NaN
Also you even have different kinds of NaN (signalling vs quiet)
Also remember that NaN is represented in multiple ways bitwise:
https://en.wikipedia.org/wiki/NaN
Also you even have different kinds of NaN (signalling vs quiet)
Per IEEE 754, yes, but JS the language doesn't distinguish between NaN representations.
Correct.
I guess you could actually see what representation your browser is using with ArrayBuffer.
A quiet NaN in my case if I am doing things right:
'0000000000000000111110000111111100000000000000000000000000000000'