NaN Numbers

NaN is a value that is an abbreviation for the following phrase:

not a number

NaN is not a data type. NaN does include a literal representation. To test for NaN, you must use the isNaN function. The following example illustrates this usage:

var Test = "Test String";
if (isNaN(parseInt(Test)))
TheApplication().RaiseErrorText("Test is Not a Number");

If the parseInt function attempts to parse Test String into an integer, then it returns NaN because Test String does not represent a number.