#you can also set the other bits in the nan by instantiating the float arraybuffer from an int arraybuffer
Explore tagged Tumblr posts
Text
I think Javascript is the weirder of the two here. In Python, `-math.nan` *displays* as just `nan` but internally it's negative nan and negating it again gives positive nan again.
Javascript... if you try assigning negative NaN to a variable or passing it to a function, it resolves to regular NaN. Float ArrayBuffers are the only context I could find where they keep their sign.
javascript... negative NaN???
8 notes
·
View notes