public inbox for glibc-bugs@sourceware.org help / color / mirror / Atom feed
From: "jakub at redhat dot com" <sourceware-bugzilla@sourceware.org> To: glibc-bugs@sources.redhat.com Subject: [Bug libc/6467] strtod "0.0" returns nonzero Date: Tue, 29 Apr 2008 18:49:00 -0000 [thread overview] Message-ID: <20080429184818.21156.qmail@sourceware.org> (raw) In-Reply-To: <20080429175907.6467.eberlein@us.ibm.com> ------- 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.
next prev parent reply other threads:[~2008-04-29 18:49 UTC|newest] Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top 2008-04-29 18:00 [Bug libc/6467] New: " eberlein at us dot ibm dot com 2008-04-29 18:49 ` jakub at redhat dot com [this message] 2008-04-29 19:30 ` [Bug libc/6467] " eberlein at us dot ibm dot com 2008-04-29 19:44 ` jakub at redhat dot com
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20080429184818.21156.qmail@sourceware.org \ --to=sourceware-bugzilla@sourceware.org \ --cc=glibc-bugs@sources.redhat.com \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).