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