[gfortran,ping] support for large kinds in front-end and library

Feng Wang wf_cs@yahoo.com
Thu Aug 4 04:12:00 GMT 2005


--- Richard Henderson <rth@redhat.com> wrote:

> On Thu, Aug 04, 2005 at 09:45:42AM +0800, Feng Wang wrote:
> >   __float80 a;
> >   __float128 b;
> >   a = 2.0;
> >   b = 2.0;
> >   printf ("%f, %f\n", a, b);
> 
> Certainly you shouldn't expect this to ever work.  You
> need to use %Lf for long double, and there is no standard
> flag letter for __float128.
> 

Correct as: printf ("%Lf, %Lf\n", a, b);
The output:
2.000000, 0.000000



Best Regards,
Feng Wang

--
Creative Compiler Research Group,
National University of Defense Technology, China.


	
	
		
__________________________________ 
Do you Yahoo!? 
New and Improved Yahoo! Mail - 1GB free storage! 
http://sg.whatsnew.mail.yahoo.com



More information about the Fortran mailing list