This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: printf with long double
- From: Tim Prince <timothyprince at sbcglobal dot net>
- To: Adrian Sandor <aditsu at yahoo dot com>, gcc-bugs at gcc dot gnu dot org
- Date: Wed, 15 Jan 2003 17:49:38 -0800
- Subject: Re: printf with long double
- References: <20030115163718.20621.qmail@web40305.mail.yahoo.com>
- Reply-to: tprince at computer dot org
On Wednesday 15 January 2003 08:37, Adrian Sandor wrote:
> Hello
>
> I am using dev-c++ with mingw and gcc 3.2 (on
> windows); I tried to display a long double using
> printf("%Lf", value) and the result was totally
> screwed up. I tested it with gcc 3.1 on another
> platform and it worked fine. I'd like to know what I
> can do to solve the problem.
>
> thanks,
> Adrian
You'll probably have to write your own printf() extensions. gcc doesn't take
responsibility for whose printf() you choose, and Windows printf() libraries
typically don't support long double.
--
Tim Prince