Home Articles FAQs XREF Games Software Instant Books About Feedback Search Site-Map
irt.org logo

Feedback on: irt.org FAQ Knowledge Base Q332

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


Provide feedback ...
AddThis Social Bookmark Button

Provide feedback ... AddThis Social Bookmark Button


Last Updated: 21st December 2007. Maintained by: Martin Webb
irt.org liability, trademark, document use, privacy statement and software licensing rules apply.
Copyright © 1996-2008 irt.org, All Rights Reserved.