This is a value representing invalid numeric values. It should be identical to the NaN value provided by the Global object in an ECMA-compliant implementation. Refer to the coverage of the NaN topic for full details.
However, it is generally considered unreliable to compare against NaN values with a simple equality test. To reliably test whether a numeric value is NaN or a good numeric value, use the isNaN() function and select an appropriate action according to its result.
ECMA 262 edition 2 - section - 15.7.3.4
ECMA 262 edition 3 - section - 15.7.3.4
O'Reilly JavaScript Definitive Guide - page - 37
Prev | Home | Next |
Number.MIN_VALUE | Up | Number.NEGATIVE_INFINITY |
JavaScript Programmer's Reference, Cliff Wootton Wrox Press (www.wrox.com) Join the Wrox JavaScript forum at p2p.wrox.com Please report problems to support@wrox.com © 2001 Wrox Press. All Rights Reserved. Terms and conditions. |