|
|
Feedback on: Articles
irt.org | About | Feedback | 2378 [ previous next ] Feedback on: Sent by Worth: Comments: Hello; I was looking for a way to tell if a variable was a number or not. It seems that there is no standard way to do this. I read your article at http://developer.irt.org/script/39.htm ("Is there a simple way to test if a variable is a number . . .") and came up with another solution, that works in IE 5.01 and NN 4.75: <SCRIPT LANGUAGE="JavaScript"> It works with any number, integer or not. I assume it works because JavaScript doesn't know how to divide non-numbers. I used it to validate input entries into a random number generator I made. Perhaps this will be useful . . . Other feedback on 'Articles' - show all
|
-- div -->
|