diff options
| author | Admiral H. Curtiss <pikachu025@gmail.com> | 2022-04-12 23:35:19 +0200 |
|---|---|---|
| committer | Admiral H. Curtiss <pikachu025@gmail.com> | 2022-04-12 23:35:19 +0200 |
| commit | 5c687fc2a33bc23798e49c671bda9e2a38922947 (patch) | |
| tree | 07804ff344cf1e44aee3a9cf2daa252c03a88fae /Source/Core/Common/StringUtil.cpp | |
| parent | 2f90a2c6892637524493880c8c326a5e0929b234 (diff) | |
Common/StringUtil: Use simpler formatting for floats and doubles.
Diffstat (limited to 'Source/Core/Common/StringUtil.cpp')
| -rw-r--r-- | Source/Core/Common/StringUtil.cpp | 4 |
1 files 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) |
