printf with long double

Tim Prince timothyprince@sbcglobal.net
Thu Jan 16 08:48:00 GMT 2003


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



More information about the Gcc-bugs mailing list