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


Groups > comp.lang.javascript > #27966

Re: null and NaN

From Thomas 'PointedEars' Lahn <PointedEars@web.de>
Newsgroups comp.lang.javascript
Subject Re: null and NaN
Date 2015-06-02 22:50 +0200
Organization PointedEars Software (PES)
Message-ID <5372109.m6cAzv7mbg@PointedEars.de> (permalink)
References <null-20150602191404@ram.dialup.fu-berlin.de>

Show all headers | View raw


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.

Back to comp.lang.javascript | Previous | Next | Find similar | Unroll thread


Thread

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

csiph-web