RE: Long Double in gcc or g++
Okay brain dead (8*12)!=72 DOH! 8*12==96
Sorry,
Brooks
-------------------------------------------------------------------------
Greetings,
I tried this c codelet and got 12. Wouldn't that make it 72 bits?
int main( void )
{
long double d;
printf( "%d\n", sizeof(d) );
return 0;
}
HTH,
Brooks
> -----Original Message-----
> From: Sebastian Canagaratna [mailto:scanagar@canax2.onu.edu]On Behalf Of
> Sebastian Canagaratna
> Sent: Thursday, 16 August, 2001 06:49 AM
> To: debian-user@lists.debian.org
> Subject: Long Double in gcc or g++
>
>
> Hi:
>
> I was under the impression that on PC'c gcc or g++ implement
> the 80 bit long double. But how do you use it? I included math.h
>
>
> WHen I declared long double it does not complain. But when I treid
> to display it wiht %LE the number of digits is the same as for
> double. ALso the program does not recognize M_PIl, the long double
> form of PI which is defined in mathcalls.h. Does it require
> 128 bit for its use? HAve I to define somewithings with #define ?
>
> I am using a Pentium III.
>
> Thanks.
>
> Sebastian.
> --
> Sebastian Canagaratna
> Department of Chemistry
> Ohio Northern University
> s-canagaratna@onu.edu
>
>
> --
> To UNSUBSCRIBE, email to debian-user-request@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact
> listmaster@lists.debian.org
>
>
Reply to: