From fa350d5b5219d212e7dcab69edacbd1440793943 Mon Sep 17 00:00:00 2001 From: davidpanderson Date: Sun, 6 Mar 2022 00:10:25 -0800 Subject: [PATCH] Computing prefs dialog: use %f instead of %g (which writes scientific notation for large numbers, which then can't be read). --- clientgui/DlgAdvPreferences.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clientgui/DlgAdvPreferences.cpp b/clientgui/DlgAdvPreferences.cpp index 695b0ca367..a8ecec3cf7 100644 --- a/clientgui/DlgAdvPreferences.cpp +++ b/clientgui/DlgAdvPreferences.cpp @@ -252,7 +252,7 @@ void CDlgAdvPreferences::DisplayValue(double value, wxTextCtrl* textCtrl, wxChec return; } } - buffer.Printf(wxT("%g"), value); + buffer.Printf(wxT("%.2f"), value); textCtrl->ChangeValue(buffer); textCtrl->Enable(); }