getting an international number from a string
Hey gurus, can anyone shed some light on how to take a string and turn it into a float? The catch is that I need to take into considerations the users international prefs like using a comma for decimal separator and a decimal for thousands separator versus the standard English version which is opposite to that.
The user may enter:
1999
or 1999.49
or 1999,49
or 1,999.49
or 1.999,49
or 1,999.5
How can I translate this to 1999.00, 1999.49 and 1999.50 respectively?
Thanks
|