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/19 20:30,
18.191.132.26: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://massmind.org/techref/language/JAVA/script/definitive/refp_268.htm"> [Chapter 21] Reference: Number.NaN</A> |
Did you find what you needed? |
Welcome to massmind.org! |
Ashley Roll has put together a really nice little unit here. Leave off the MAX232 and keep these handy for the few times you need true RS232! |
.