HighDots Forums  

Re: parseInt!=parseInt ?

Javascript (German) Programmiersprache JavaScript. (de.comp.lang.javascript)


Discuss Re: parseInt!=parseInt ? in the Javascript (German) forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Dietmar Meier
 
Posts: n/a

Default Re: parseInt!=parseInt ? - 11-09-2004 , 06:50 AM






bernhard schelling <schello (AT) evomobil (DOT) net> typed:

Quote:
alert(parseInt("")==parseInt("")) //false?????
RTfineM

,---[ Netscape Core JavaScript Reference 1.5 ]---
Quote:
NaN is always unequal to any other number, including NaN itself;
you cannot check for the not-a-number value by comparing to
Number.NaN. Use the isNaN function instead.
ciao, dhgm


Reply With Quote
  #2  
Old   
Dietmar Meier
 
Posts: n/a

Default Re: parseInt!=parseInt ? - 11-09-2004 , 06:57 AM






Dietmar 'Ingrid' Meier typed:

Quote:
RTfineM

,---[ Netscape Core JavaScript Reference 1.5 ]---
| NaN is always unequal to any other number, including NaN itself;
| you cannot check for the not-a-number value by comparing to
| Number.NaN. Use the isNaN function instead.
Oh, da fe lte noch was:

,-----[ ECMA 262 3rd Ed., 11.9.3 ]-----
Quote:
The comparison x == y, where x and y are values, produces true or false.
Such a comparison is performed as follows:
[...]
5. If x is NaN, return false.
6. If y is NaN, return false.
[...]
ciao, dhgm


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.