Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #27966 > unrolled thread

Re: null and NaN

Started byThomas 'PointedEars' Lahn <PointedEars@web.de>
First post2015-06-02 22:50 +0200
Last post2015-06-02 22:50 +0200
Articles 1 — 1 participant

Back to article view | Back to comp.lang.javascript

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: null and NaN Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2015-06-02 22:50 +0200

#27966 — Re: null and NaN

FromThomas 'PointedEars' Lahn <PointedEars@web.de>
Date2015-06-02 22:50 +0200
SubjectRe: null and NaN
Message-ID<5372109.m6cAzv7mbg@PointedEars.de>
Stefan Ram wrote:

>   Sometimes, it has been questioned whether it was wise to
>   implement
> 
> typeof null
> "object"

Cite evidence.
 
>   . However, I just became aware that this is echoing a
>   similar case:
> 
> typeof NaN
> "number"
> 
>   . NaN says its »Not a Number«, yet typeof says it is a
>   number!

It is a simple consequence of the Number type implementing most of the 
IEEE 754 Specification for double-precision floating-point values.

As much too often before, your almost unreadable ramblings are 
unsubstantiated, unsubstiantal, and ultimately pointless.  I wished you 
would stop them and actually start learning things.

-- 
PointedEars
FAQ: <http://PointedEars.de/faq> | SVN: <http://PointedEars.de/wsvn/>
Twitter: @PointedEars2 | ES Matrix: <http://PointedEars.de/es-matrix>
Please do not cc me. / Bitte keine Kopien per E-Mail.

[toc] | [standalone]


Back to top | Article view | comp.lang.javascript


csiph-web