diff options
Diffstat (limited to 'Userland/Libraries/LibGUI/Variant.cpp')
-rw-r--r-- | Userland/Libraries/LibGUI/Variant.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibGUI/Variant.cpp b/Userland/Libraries/LibGUI/Variant.cpp index 300e9b90e5..7e974e2d00 100644 --- a/Userland/Libraries/LibGUI/Variant.cpp +++ b/Userland/Libraries/LibGUI/Variant.cpp @@ -424,7 +424,7 @@ String Variant::to_string() const case Type::UnsignedInt: return String::number(as_uint()); case Type::Float: - return String::format("%.2f", (double)as_float()); + return String::formatted("{}", as_float()); case Type::String: return as_string(); case Type::Bitmap: |