Which version to prefer depends on if the offending string is always created on the same system as your application runs on or if you can be sure that the thousands separator always is a comma and not e.g. a space, or maybe even a dot from a spanish system. In the latter case you have an interesting task of determining which is the decimal separator (",") and which is the thousands separator (".")!
Cheers!
Jan-Christian
Old programmers never die,
they just slowly type away....
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.