SUMMARY: long double problem on solaris 9

From: RJ45 <rj45_at_slacknet.com>
Date: Mon Jun 02 2003 - 11:02:38 EDT
thanks to many who replied to me

solution is to use printf with %Lf argument

thanks

Rick

>>> RJ45 <rj45@slacknet.com> 02/06/03 13:28:14 >>>
Hello,
executing this program 

#include <stdio.h>

int main()
{
        long double a=5.;
        printf("%f\n",a);
        return 0;
}

give me this result displayed:
-2246010621695278656786412713835650995153971853912203105234994064070860245284001
10508044298580315640213841374579594150212321127897624537331306759927458771766180
23326204164567053160822901163337397913217320294643777142585778729419904656118079
976251053116490976360808314768476380178723699029737203544953580421120.000000
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers
Received on Mon Jun 2 11:05:29 2003

This archive was generated by hypermail 2.1.8 : Thu Mar 03 2016 - 06:43:11 EST