Merge pull request #10582 from AdmiralCurtiss/fmt-float

Common/StringUtil: Use simpler formatting for floats and doubles.
This commit is contained in:
Admiral H. Curtiss 2022-04-16 03:42:55 +02:00 committed by GitHub
commit 0a4805c0b9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)