Merge pull request #2733 from AdmiralCurtiss/string-from-float

IniFile: Fix floating point number locale issues.
This commit is contained in:
Markus Wick
2015-12-02 15:22:42 +01:00
2 changed files with 4 additions and 4 deletions

View File

@ -46,12 +46,12 @@ public:
void Set(const std::string& key, float newValue)
{
Set(key, StringFromFormat("%f", newValue));
Set(key, StringFromFormat("%#.9g", newValue));
}
void Set(const std::string& key, double newValue)
{
Set(key, StringFromFormat("%f", newValue));
Set(key, StringFromFormat("%#.17g", newValue));
}
void Set(const std::string& key, int newValue)