Timeline for Why isn't it ending?
Current License: CC BY-SA 3.0
5 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jun 17, 2020 at 9:04 | history | edited | CommunityBot |
Commonmark migration
|
|
Dec 17, 2014 at 16:28 | comment | added | hetzi | It's kind of funny that the type of NaN is actually number. | |
Dec 17, 2014 at 16:26 | comment | added | Phil H | The behaviour is actually part of the IEEE754 spec for floating point behaviour, which is used in many languages (C++, Java, .Net, etc) and is the usual way to represent floating point numbers in binary. Javascript uses dynamic typing, so a variable can contain a numeric value, a string value or an object reference (e.g. an array). A NaN is still a numeric type of value, which is why its type is Number - it's not an empty string or a Null object. | |
Jul 24, 2014 at 6:23 | review | First posts | |||
Jul 24, 2014 at 6:42 | |||||
Jul 24, 2014 at 6:23 | history | answered | hetzi | CC BY-SA 3.0 |