From f37d87db76882686e6f407826f491044f27328d9 Mon Sep 17 00:00:00 2001 From: nsz Date: Apr 11 2012 11:52:58 +0000 Subject: strtod: add zero test --- diff --git a/src/stdlib/strtod.c b/src/stdlib/strtod.c index 08ff74a..51e5a92 100644 --- a/src/stdlib/strtod.c +++ b/src/stdlib/strtod.c @@ -60,7 +60,9 @@ static struct { char *s; double f; } t[] = { -// {"-.00000", -0.0}, + {"0", 0.0}, + {"00.00", 0.0}, + {"-.00000", -0.0}, {"1e+1000000", INFINITY}, {"1e-1000000", 0}, // 2^-1074 * 0.5 - eps