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


------- Additional Comments From vincent+libc at vinc17 dot org  2010-04-07 09:17 -------
With a corrected code:

#include <stdio.h>

int main (void)
{
  double d = 0.1;
  _Decimal64 e = 0.1;
  printf ("%.20f\n", d);
  printf ("%Da\n", e);
  printf ("%De\n", e);
  printf ("%Df\n", e);
  printf ("%Dg\n", e);
  return 0;
}

currently gives:

0.10000000000000000555
%Da
%De
%Df
%Dg

-- 


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.


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