mirror of
https://github.com/cookiengineer/audacity
synced 2026-04-26 07:53:42 +02:00
Increase precision of floats/doubles
This commit is contained in:
@@ -92,6 +92,11 @@ public:
|
|||||||
return wxFileConfig::DoWriteLong(NormalizeName(key), lValue);
|
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
|
bool ReadFloat(const wxString & key, float *pf) const
|
||||||
{
|
{
|
||||||
double d = *pf;
|
double d = *pf;
|
||||||
|
|||||||
Reference in New Issue
Block a user