public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "zimmerma+gcc at loria dot fr" <sourceware-bugzilla@sourceware.org>
To: glibc-bugs@sources.redhat.com
Subject: [Bug libc/11475] New: support for printing/reading decimal numbers (_Decimal64)
Date: Wed, 07 Apr 2010 08:40:00 -0000	[thread overview]
Message-ID: <20100407084013.11475.zimmerma+gcc@loria.fr> (raw)

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=11475

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


             reply	other threads:[~2010-04-07  8:40 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-04-07  8:40 zimmerma+gcc at loria dot fr [this message]
2010-04-07  9:11 ` [Bug libc/11475] " vincent+libc at vinc17 dot org
2010-04-07  9:12 ` vincent+libc at vinc17 dot org
2010-04-07  9:16 ` zimmerma+gcc at loria dot fr
2010-04-07  9:17 ` vincent+libc at vinc17 dot org
2010-04-07  9:25 ` vincent+libc at vinc17 dot org
2010-04-07  9:38 ` schwab at linux-m68k dot org
2010-04-07 13:30 ` drepper at redhat dot com
2010-04-07 15:30 ` vincent+libc at vinc17 dot org
2010-04-28  8:15 ` zimmerma+gcc at loria dot fr

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=20100407084013.11475.zimmerma+gcc@loria.fr \
    --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: link
Be 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).