This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libc/6467] strtod "0.0" returns nonzero


------- 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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]