Locale-Sensitive C/C++ String Operation Function
double atof(const char* string);
double _wtof(const wchar_t* string);
double _tstof(const TCHAR* string);
double _ttof(const TCHAR* string);
Internationalization (I18n) Function Overview
The atof function converts string into a double, using the LC_NUMERIC category setting of the current locale.
_wtof is supported only on Windows platforms and is the wide character version of atof , converting a wide-character string into an integer.
_tstof and _ttof are Windows-only Generic versions of the function.
I18n Issues
Use the appropriate version of the function as required for internationalization support, noting the following:
For ANSI UTF-8, atof is considered obsolete and strtod should be called instead.
For ANSI UTF-16, use wcstod .
Ensure that the current locale is set properly.
Recommended Replacements*
*If you're already using the recommended function, see I18n Issues for other reasons why Globalyzer is detecting the function.
Locale-Sensitive C/C++
String Operation Functions
|