git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74240
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
wxString wxNumberFormatter::ToString(double val, int precision, int style)
{
wxString wxNumberFormatter::ToString(double val, int precision, int style)
{
- const wxString fmt = wxString::Format("%%.%df", precision);
- wxString s = wxString::Format(fmt, val);
+ wxString s = wxString::FromDouble(val,precision);
if ( style & Style_WithThousandsSep )
AddThousandsSeparators(s);
if ( style & Style_WithThousandsSep )
AddThousandsSeparators(s);