in reply to Re: Re: How to check Inputs if Numeric
in thread How to check Inputs if Numeric

> Yours fails for negative numbers
I know it's primitive. But I coded it in about 5 seconds and for some application it might be good enough.

> , and for strings with more than one decimal place
Not True. It declares anything containing something else than numbers and decimal ponit(s) as non-numeric.

For a real application I'd use something like Abigail's Regexp::Common

pelagic
-------------------------------------
I can resist anything but temptation.