From 5c687fc2a33bc23798e49c671bda9e2a38922947 Mon Sep 17 00:00:00 2001 From: "Admiral H. Curtiss" Date: Tue, 12 Apr 2022 23:35:19 +0200 Subject: [PATCH] Common/StringUtil: Use simpler formatting for floats and doubles. --- Source/Core/Common/StringUtil.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/Core/Common/StringUtil.cpp b/Source/Core/Common/StringUtil.cpp index 2a696f32f8..a752ab0e10 100644 --- a/Source/Core/Common/StringUtil.cpp +++ b/Source/Core/Common/StringUtil.cpp @@ -279,12 +279,12 @@ std::string ValueToString(u64 value) std::string ValueToString(float value) { - return fmt::format("{:#.9g}", value); + return fmt::format("{:#}", value); } std::string ValueToString(double value) { - return fmt::format("{:#.17g}", value); + return fmt::format("{:#}", value); } std::string ValueToString(int value)