// Set environment's default locale
setlocale(LC_ALL, "");
+ setlocale(LC_NUMERIC, "C");
// Make sure that the TEMP variable is set
// and sync the Windows environment.
// Set environment's default locale
setlocale(LC_ALL, "");
+ setlocale(LC_NUMERIC, "C");
}
if (pos != string::npos) {
string value = scale.substr(pos + 1);
if (isStrDbl(value)) {
- percentage = convert<string>(100 * convert<double>(value));
+ percentage = convert<string>(
+ static_cast<int>(100 * convert<double>(value)));
return true;
}
}