diff --git a/Source/Core/Common/IniFile.h b/Source/Core/Common/IniFile.h index fc39e783cc..0ccb25a1a5 100644 --- a/Source/Core/Common/IniFile.h +++ b/Source/Core/Common/IniFile.h @@ -47,12 +47,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)