Should equal(NaN, NaN)
return true
?
Issue Analytics
- State:
- Created 6 years ago
- Comments:13 (9 by maintainers)
Top Results From Across the Web
NaN - Wikipedia
In computing, NaN standing for Not a Number, is a member of a numeric data type that can be interpreted as a value...
Read more >NaN - JavaScript - MDN Web Docs
NaN is a property of the global object. In other words, it is a variable in global scope. In modern browsers, NaN is...
Read more >National Action Network
NAN has been marching and fighting for civil rights since 1991. Watch previous speeches from political leaders like Barack Obama, Joe Biden &...
Read more >Nan Definition & Meaning - Merriam-Webster
The meaning of NAN is a round flat leavened bread especially of the Indian subcontinent.
Read more >nan - Wiktionary
From Nan, pet form of the formerly very common female given names Anne and Agnes. As a nursemaid and grandmother, a clipping of...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
This proof has (or would have) an obvious logical flaw, like all sophisms, discussing which is out of scope here.
I think the right approach is just do what most other libraries do (still need to check it).
No.
NaN
means value you get is indeterminate.Take for example following expression
x*1/x
. It’s obvious this value is 1 whateverx
is, however look what happens when x approaches really small value (e.g.1e-324*(1/1e-324)
) the value becomesNaN
.Another example could be
0*x
. The value is obviously 0 for anyx != 0
so when e.g.x
is1e+324*(1/1e+324)
it becomesNaN
as well.We can prove first
NaN
= 1 and that secondNaN
= 0. IfNaN == NaN
then we can prove1==0
.