I have a text filed and on submitting the field I just want to check to ensure it is a number.

Either floating point or integer.

"12.9", "10000"

Hmmmmm

I'm and idiot, I know.