Round close to zero fixed precision

This commit is contained in:
Victor Zverovich committed 2019-03-09 15:18:34 -08:00
1 parent 49d244c065
commit 8407f4cb24
2 files changed
+47 -16

No files matched your search

+1
View File
@@ -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) {