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/4869] New: glibc 2.6: incorrect printing of floating-point numbers


Under the format, e.g., "%#.5g", glibc 2.6 prints floating point
numbers in a manner that is inconsistent with the C standard.  
For example

  printf("%#.5g\n", 50.99999999);

gives

  51.00

which fails to display the required 5 digits.

-- 
           Summary: glibc 2.6: incorrect printing of floating-point numbers
           Product: glibc
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: libc
        AssignedTo: drepper at redhat dot com
        ReportedBy: cottrell at wfu dot edu
                CC: glibc-bugs at sources dot redhat dot com
 GCC build triplet: i486-linux-gnu
  GCC host triplet: i486-linux-gnu
GCC target triplet: i486-linux-gnu


http://sourceware.org/bugzilla/show_bug.cgi?id=4869

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