Round close to zero fixed precision

This commit is contained in:
Victor Zverovich
2019-03-09 15:18:34 -08:00
parent 49d244c065
commit 8407f4cb24
2 changed files with 47 additions and 16 deletions
+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) {