PDA

View Full Version : regExp for checking for floating number


frontline
10-24-2002, 11:23 AM
can someone pls point how to build regExp to check vaild
floading number inclouding the right range and checking for the
point.
thanks!!

Roy Sinclair
10-24-2002, 03:09 PM
Why not use the built in functions parseFloat and isNaN?

Feed the value into parseFloat and then check the result with isNaN to determine if the user entered a valid number or not.

beetle
10-24-2002, 05:39 PM
my fValidate (http://www.peterbailey.net/fValidate/site.php?page=types#decimal) does that. :D