Lena@gregtech.eu to Programmer Humor@programming.dev · 6 days agoWhat the fuck javascriptgregtech.euimagemessage-square36linkfedilinkarrow-up11arrow-down10
arrow-up11arrow-down1imageWhat the fuck javascriptgregtech.euLena@gregtech.eu to Programmer Humor@programming.dev · 6 days agomessage-square36linkfedilink
minus-squarealsimoneau@lemmy.calinkfedilinkarrow-up0·4 days agoThat never arises in normal use though. I didn’t even know it existed since anything that would yield one raises an exception instead.
minus-squarearty@feddit.orglinkfedilinkEnglisharrow-up0·4 days agoBut the OP complains specifically about typeof NaN, and not about Math.sqrt(-1) // NaN I know this doesn’t count as “normal use”, but in Python you get it e.g. via math.inf * 0.
That never arises in normal use though. I didn’t even know it existed since anything that would yield one raises an exception instead.
But the OP complains specifically about
typeof NaN, and not aboutMath.sqrt(-1) // NaNI know this doesn’t count as “normal use”, but in Python you get it e.g. via
math.inf * 0.