This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/11476] New: support for printing/reading decimal numbers (_Decimal64)
- From: "zimmerma+gcc at loria dot fr" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: 7 Apr 2010 09:16:50 -0000
- Subject: [Bug libc/11476] New: support for printing/reading decimal numbers (_Decimal64)
- Reply-to: sourceware-bugzilla at sourceware dot org
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.