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/11476] New: support for printing/reading decimal numbers (_Decimal64)


as far as I know, the current glibc does not print/read decimal formats
(_Decimal64 for example). Is there any plan to support this?

Example code:
#include <stdio.h>

int
main()
{
  double d = 0.1;
  _Decimal64 e = 0.1;
  printf ("%.20f\n", d);
  printf ("%.20f\n", e);
}

gives:

tarte% gcc bug.c
tarte% ./a.out 
0.10000000000000000555
0.00000000000000000000

We expect 0.10000000000000000000 for the second output.

-- 
           Summary: support for printing/reading decimal numbers
                    (_Decimal64)
           Product: glibc
           Version: unspecified
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: libc
        AssignedTo: drepper at redhat dot com
        ReportedBy: zimmerma+gcc at loria dot fr
                CC: glibc-bugs at sources dot redhat dot com


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

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