mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-09 23:59:27 +01:00
Merge pull request #10582 from AdmiralCurtiss/fmt-float
Common/StringUtil: Use simpler formatting for floats and doubles.
This commit is contained in:
commit
0a4805c0b9
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user