Navigator 3.0
Number.NaN
Number.NaN is a special value that indicates that the result of some arithmetic operation (such as division by zero) or mathematical function is "Not-a-Number." parseInt() and parseFloat() return this value when they cannot parse the specified string, and you might use Number.NaN in a similar way to indicate an error condition for some function that normally returns a valid number.
JavaScript prints the Number.NaN value as NaN. Note that the NaN value always compares unequal to any other number, including NaN itself. Thus, you cannot check for the Not-a-Number value by comparing to Number.NaN. Use the isNaN() function instead.
file: /Techref/language/JAVA/SCRIPT/definitive/refp_268.htm, 4KB, , updated: 2019/10/14 15:00, local time: 2024/11/26 23:21,
18.117.12.181:LOG IN
|
©2024 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions? <A HREF="http://sxlist.com/techref/language/JAVA/SCRIPT/definitive/refp_268.htm"> [Chapter 21] Reference: Number.NaN</A> |
Did you find what you needed? |
Welcome to sxlist.com!sales, advertizing, & kind contributors just like you! Please don't rip/copy (here's why Copies of the site on CD are available at minimal cost. |
Welcome to sxlist.com! |
.