This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/6467] strtod "0.0" returns nonzero
- From: "jakub at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: 29 Apr 2008 18:48:18 -0000
- Subject: [Bug libc/6467] strtod "0.0" returns nonzero
- References: <20080429175907.6467.eberlein@us.ibm.com>
- Reply-to: sourceware-bugzilla at sourceware dot org
------- Additional Comments From jakub at redhat dot com 2008-04-29 18:48 -------
It would be helpful if you could say on which target that is, because I
definitely can't reproduce it, neither on x86_64, nor on ppc32.
#define _GNU_SOURCE
#include <stdlib.h>
#include <stdio.h>
int
main (void)
{
printf("%g\n", strtof("0.0", NULL));
printf("%g\n", strtod("0.0", NULL));
printf("%Lg\n", strtold("0.0", NULL));
printf("%g\n", strtof("0", NULL));
printf("%g\n", strtod("0", NULL));
printf("%Lg\n", strtold("0", NULL));
printf("%g\n", strtof("0.000", NULL));
printf("%g\n", strtod("0.000", NULL));
printf("%Lg\n", strtold("0.000", NULL));
printf("%g\n", strtof("0.000e0", NULL));
printf("%g\n", strtod("0.000e0", NULL));
printf("%Lg\n", strtold("0.000e0", NULL));
return 0;
}
prints just 0s.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |WAITING
http://sourceware.org/bugzilla/show_bug.cgi?id=6467
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.