From a5d7e89dee82ef8d18b7a69ab677001393d13bf6 Mon Sep 17 00:00:00 2001 From: Xun Li Date: Wed, 19 Dec 2018 13:41:18 -0700 Subject: [PATCH] #1687 revert to still use .00 on x/y axes in plots (e.g. box plot, scatter plot etc.) so to match the screenshot in lab --- GenUtils.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/GenUtils.cpp b/GenUtils.cpp index 853411cdb..71a77b205 100644 --- a/GenUtils.cpp +++ b/GenUtils.cpp @@ -1263,12 +1263,16 @@ wxString GenUtils::DblToStr(double x, int precision) if (x < 10000000) { ss << std::fixed; } - if (x == (int)x) { + /* + if (x == (int)x) { ss << (int)x; } else { ss << std::setprecision(precision); ss << x; } + */ + ss << std::setprecision(precision); + ss << x; return wxString(ss.str().c_str(), wxConvUTF8); }