www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/02/23/18:46:07

From: Martin Ambuhl <mambuhl AT earthlink DOT net>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Long Double
Date: Tue, 23 Feb 1999 18:06:29 -0500
References: <7au88j$1ql AT jolt DOT jea DOT com>
X-Posted-Path-Was: not-for-mail
X-Accept-Language: en
X-ELN-Date: 23 Feb 1999 23:06:20 GMT
X-ELN-Insert-Date: Tue Feb 23 15:15:02 1999
Organization: Nocturnal Aviation
Lines: 25
Mime-Version: 1.0
NNTP-Posting-Host: 1cust140.tnt11.nyc3.da.uu.net
Message-ID: <36D33475.939F908A@earthlink.net>
X-Mailer: Mozilla 4.5 [en] (Win95; I)
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

"John B. Coarsey,PE" wrote:
> 
> I have read through the FAQ and cannot determine if DJGPP will support the
> long double data type.  I have used Borland's compilers in the past which
> do. I have tried to coerce my copy of DJGPP to do so.  If DJGPP does would
> someone post a code snippet showing how to declare and print one.  TIA

'long double' is a required type in a conforming compiler.  gcc and g++
in the djgpp project certainly support it.

#include <stdio.h>
int main(void)
{
    long double x = 1.3;
    printf("x = %Lf\n", x);
    return 0;
}

And don't believe any messages like:
`warning: ANSI C does not support the `L' length modifier'
Just ignore them.

-- 
Martin Ambuhl (mambuhl AT earthlink DOT net)
Note: mambuhl AT tiac DOT net will soon be inactive

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019