Separate handling for pos/neg exp and improve pos exp overflow

This commit is contained in:
Milo Yip
2015-04-24 22:50:42 +08:00
parent 93d13ad2ac
commit 735354efd3
2 changed files with 16 additions and 8 deletions

View File

@@ -229,6 +229,7 @@ static void TestParseDouble() {
TEST_DOUBLE(fullPrecision, "1e-00011111111111", 0.0); // Issue #313
TEST_DOUBLE(fullPrecision, "-1e-00011111111111", -0.0);
TEST_DOUBLE(fullPrecision, "1e-429496729", 0.0); // Maximum supported negative exponent
TEST_DOUBLE(fullPrecision, "0.017976931348623157e+310", 1.7976931348623157e+308); // Max double in another form
// Since