diff --git a/include/wx/string.h b/include/wx/string.h index f6bc9e1377..418dd0d704 100644 --- a/include/wx/string.h +++ b/include/wx/string.h @@ -2027,7 +2027,7 @@ public: #endif // wxHAS_LONG_LONG_T_DIFFERENT_FROM_LONG // insert a float into string wxString& operator<<(float f) - { return *this << static_cast(f); } + { return *this << Format(wxS("%f"), static_cast(f)); } // insert a double into string wxString& operator<<(double d) { return (*this) << Format(wxT("%g"), d); }