mirror of
https://github.com/fmtlib/fmt.git
synced 2025-11-25 03:39:56 +01:00
Fix fixed rounding around zero in Dragon
This commit is contained in:
@@ -953,6 +953,9 @@ TEST(format_test, precision) {
|
||||
EXPECT_EQ(fmt::format("{0:.3}", 1.1), "1.1");
|
||||
EXPECT_EQ(fmt::format("{:.0e}", 1.0L), "1e+00");
|
||||
EXPECT_EQ(fmt::format("{:9.1e}", 0.0), " 0.0e+00");
|
||||
EXPECT_EQ(fmt::format("{:.7f}", 0.0000000000000071054273576010018587L),
|
||||
"0.0000000");
|
||||
|
||||
EXPECT_EQ(
|
||||
fmt::format("{:.494}", 4.9406564584124654E-324),
|
||||
"4.9406564584124654417656879286822137236505980261432476442558568250067550"
|
||||
|
||||
Reference in New Issue
Block a user