Validating number in perl dating 4 men
Validating number in perl
tests the validity of various interpretations of a value.string is class ? The obvious example is "-" which is invalid whereas "-1" is fine.
A not-too-daring guess is that C has contributed also this piece of Tcl heritage. AMG: Note that it doesn't quite meet this goal because there are cases where prefixes of (e.g.) a number are not themselves valid numbers.
This can save you (and them) a lot of time and trouble!
It's possible to do form validation using Java Script (see our Form validation with Java Script tutorial).
For instance, French notation usually use two decimals, comma (',') as decimal separator, and space (' ') as thousand separator.