Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #10582 from AdmiralCurtiss/fmt-float
Common/StringUtil: Use simpler formatting for floats and doubles.
  • Loading branch information
AdmiralCurtiss committed Apr 16, 2022
2 parents c5c4169 + 5c687fc commit 0a4805c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Source/Core/Common/StringUtil.cpp
Expand Up @@ -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)
Expand Down

0 comments on commit 0a4805c

Please sign in to comment.