This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: printf_fp.c problem
- From: Uttam Pawar <uttamp at us dot ibm dot com>
- To: Matt Waddel <matt dot waddel at freescale dot com>
- Cc: libc-alpha at sources dot redhat dot com
- Date: Mon, 15 Aug 2005 08:28:54 -0700
- Subject: Re: printf_fp.c problem
- References: <42FAB894.4000607@freescale.com>
On Wed, 2005-08-10 at 20:31 -0600, Matt Waddel wrote:
> I get this output from the floating point printf() calls:
>
> 65535.000000
> 190157.845868
>
> main()
> {
> double f;
>
> f = 65535.0;
> printf("%f\n",f);
>
> f = 65536.0;
> printf("%f\n",f);
> }
compile/ran the above program code on couple systems, and there is no
problem with the printf() function.
BTW, what's your environment?
>
> I'm almost certain it's a problem in the printf_fp.c routine. Anybody
> have any suggestions for where to concentrate my search?
>
> Regards,
> Matt
>