1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-12-02 14:50:17 +01:00

Increase precision of floats/doubles

This commit is contained in:
Leland Lucius
2015-04-26 21:57:43 -05:00
parent 1b7d4b17f6
commit 8429a97917

View File

@@ -92,6 +92,11 @@ public:
return wxFileConfig::DoWriteLong(NormalizeName(key), lValue);
}
virtual bool DoWriteDouble(const wxString & key, double value)
{
return DoWriteString(key, wxString::Format(wxT("%.12g"), value));
}
bool ReadFloat(const wxString & key, float *pf) const
{
double d = *pf;