I'm writting some classes that deal with XML, and they need to be able
to convert from strings to doubles and back.
The problem is they should only accept/output strings valid in XML,
that is using the '.' as the decimal separator (ie '123.12').
Ive been using atof etc, but as soon as you install on a foregin
machine, you start getting numbers that look like '12,343,243' or
'32432,98' etc. These are not valid in XML documents, and thus cause
problems.
Are there any locale independant functions or source code for
convertion functions knocking around (it need to be pretty platform
independant as well).
Any help would be appresiated.
Thanks Simon Sprott