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


Groups > comp.lang.javascript > #27966

Re: null and NaN

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!1.eu.feeder.erje.net!weretis.net!feeder1.news.weretis.net!news.solani.org!.POSTED!not-for-mail
From Thomas 'PointedEars' Lahn <PointedEars@web.de>
Newsgroups comp.lang.javascript
Subject Re: null and NaN
Date Tue, 02 Jun 2015 22:50:46 +0200
Organization PointedEars Software (PES)
Lines 31
Message-ID <5372109.m6cAzv7mbg@PointedEars.de> (permalink)
References <null-20150602191404@ram.dialup.fu-berlin.de>
Reply-To Thomas 'PointedEars' Lahn <cljs@PointedEars.de>
Mime-Version 1.0
Content-Type text/plain; charset="UTF-8"
Content-Transfer-Encoding 8Bit
X-Trace solani.org 1433278411 28001 eJwFwYEBwDAEBMCVaP6FcRD2H6F3PKbWF0YDl7tlTeeL/sT0+KZE1rACnSXAOLbEb+kjBz8mBBFi (2 Jun 2015 20:53:31 GMT)
X-Complaints-To abuse@news.solani.org
NNTP-Posting-Date Tue, 2 Jun 2015 20:53:31 +0000 (UTC)
User-Agent KNode/4.14.2
X-User-ID eJwNy8EBwCAIA8CVkIaA49gg+4/Q3v/i4aISDCImJnWsm26I7S9LsoT2Pp26yuvyrmOxUA/V+DfNbc2obhc+VBsVYw==
Cancel-Lock sha1:KwG9zP0/JxE3+QqCX5/3h9Rytsk=
X-NNTP-Posting-Host eJwNxckRADEIA7CWuIxpJ2HW/Zew0UfI9l5WowuCKLfR8kxfQ9yiI5YmDZn+/rATsVknCf0RAxCn
Xref csiph.com comp.lang.javascript:27966

Show key headers only | 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