I need to compare the float value entered in a web form in a range. The problem is that client computers can have different locale settings, which means that the user can use either "." or "," to separate the integer part from the decimal.
Is there an easy way to do this? As for the intranet, and that they are only allowed to use IE, VBScript is fine, even if I prefer to use JavaScript.
EDIT: Let me clarify this a bit:
I can’t rely on the locale of the system, because, for example, many of our French customers use a computer with the English locale, even if they still use a comma to fill in data on web forms.
Thus, I need a way to check for multiple language versions of "string to double".
I know that the rise condition is “digits about digits with three decimal digits”, but in our environment such an answer never happens, and if this happens, it will be caused by an error out of range due to multiplication by thousands, so this is not real problem for us.
gizmo source share