From: Thomas Knudsen Newsgroups: comp.os.msdos.djgpp Subject: sizeof(long double) Date: Wed, 5 Mar 1997 14:18:31 +0100 Organization: News Server at UNI-C, Danish Computing Centre for Research and Education. Lines: 24 Message-ID: NNTP-Posting-Host: geb.gfy.ku.dk Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Based on the figures in float.h, I have always believed, that a long double in djgpp corresponded to an 80 bit IEEE float. However, the following code fragment: #include #include int main(void){ printf("sizeof(long double)==%d\n", (int) sizeof(long double)); return 0; } prints: sizeof(long double)==12 is this really true? Thomas -- Thomas Knudsen | www: http://www.gfy.ku.dk/~tk/ National Survey and Cadastre - Denmark | e-mail: tk AT gfy DOT ku DOT dk Geodetic office, Rentemestervej 8 | Direct Phone: +45 35 87 52 55 DK-2400 Copenhagen NV, Denmark | FAX: +45 35 87 50 52