Sun Chili!Soft ASP Sun Chili!Soft
ASP Sun Microsystems

 

JScript Global Object isNaN Method

Determines whether a value is the reserved value NaN (not a number).

Syntax: JScript Global Object isNaN Method

isNaN(numvalue)

Arguments: JScript Global Object isNaN Method

numvalue

The value to be tested against NaN.

Remarks: JScript Global Object isNaN Method

The isNaN function returns True if the value is NaN, and false otherwise. You typically use this function to test return values from the parseInt and parseFloat methods.

Alternatively, a variable could be compared to itself. If it compares as unequal, it is NaN. This is because NaN is the only value which is not equal to itself.

Copyright 2002 Sun Microsystems, Inc. All rights reserved. Legal Notice.