mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-29 04:08:55 +00:00
Common/StringUtil: Use simpler formatting for floats and doubles.
This commit is contained in:
parent
2f90a2c689
commit
5c687fc2a3
1 changed files with 2 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue