Just use a regular expression to check that your variable only contains a decimal place (
\. - you need to escape it in the regular expression) and
\d (digits 0-9). :)
----------
My cow-orkers were talking in punctuation the other day. What disturbed me most was that I understood it.