You are here: irt.org | About | Feedback | 428 [ previous next ]
Feedback on:
irt.org FAQ Knowledge Base Q332
Sent by
Josh Hoexter on September 02, 1999 at 19:19:16:
Worth:
Worth reading
Length:
Just right
Technical:
Just right
Comments:
To check for a string that will return NaN when converting to a number:
if (((contents / contents) != 1) && (contents != 0))
will not work if contents is a string containing only spaces. You need something like this:
if ((contents / contents != 1) && (parseFloat(contents) != 0))
Other feedback on 'irt.org FAQ Knowledge Base Q332' - show all