diff options
author | Ulrich Drepper <drepper@redhat.com> | 2007-04-30 22:33:44 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2007-04-30 22:33:44 +0000 |
commit | b866373d82d6378a4ae22bab1a00f8e012b7da68 (patch) | |
tree | 8f4db6080f45ecb68b369d07f84775d098c04106 /stdio-common/tfformat.c | |
parent | 37f02b1da57eb6807e849a5056bf973db840dd78 (diff) | |
download | glibc-b866373d82d6378a4ae22bab1a00f8e012b7da68.tar.gz glibc-b866373d82d6378a4ae22bab1a00f8e012b7da68.tar.xz glibc-b866373d82d6378a4ae22bab1a00f8e012b7da68.zip |
* stdio-common/printf_fp.c (___printf_fp): Don't print negative sign
for exponent 0. * stdio-common/tfformat.c (sprint_doubles): Add a new test.
Diffstat (limited to 'stdio-common/tfformat.c')
-rw-r--r-- | stdio-common/tfformat.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/stdio-common/tfformat.c b/stdio-common/tfformat.c index 259e2e0b18..d67b3b504d 100644 --- a/stdio-common/tfformat.c +++ b/stdio-common/tfformat.c @@ -4021,6 +4021,8 @@ sprint_double_type sprint_doubles[] = {__LINE__, 0.000098, "0.0001", "%#.0g"}, {__LINE__, 0.0000996, "0.00010", "%#.2g"}, {__LINE__, 9.999999999999999e-05, "0.0001", "%g"}, + {__LINE__, 1.0, "1.000000e+00", "%e"}, + {__LINE__, .9999999999999999, "1.000000e+00", "%e"}, {0 } |