Round close to zero fixed precision
This commit is contained in:
1 parent
49d244c065
commit
8407f4cb24
2 files changed
+47
-16
No files matched your search
@@ -1472,6 +1472,7 @@ TEST(FormatterTest, FormatDouble) {
|
||||
|
||||
TEST(FormatterTest, PrecisionRounding) {
|
||||
EXPECT_EQ("0.000", format("{:.3f}", 0.00049));
|
||||
EXPECT_EQ("0.001", format("{:.3f}", 0.0005));
|
||||
}
|
||||
|
||||
TEST(FormatterTest, FormatNaN) {
|
||||
|
||||
Reference in new issue
Block a user