www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/02/23/09:08:16

Date: Tue, 23 Feb 1999 16:06:28 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: "John B. Coarsey,PE" <coarjb AT jea DOT com>
cc: djgpp AT delorie DOT com
Subject: Re: Long Double
In-Reply-To: <7au88j$1ql@jolt.jea.com>
Message-ID: <Pine.SUN.3.91.990223160137.3867D-100000@is>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com

On Tue, 23 Feb 1999, John B. Coarsey,PE wrote:

> I have read through the FAQ and cannot determine if DJGPP will support the
> long double data type.

Yes, DJGPP supports long double.  But the place to look for this info is 
not in the FAQ, it's in the library docs, e.g., in the docs of the printf 
function.

> would someone post a code snippet showing how to declare and print one.

Declare:

	long double foo = 0.5L;

Print:

	printf ("%Lf", foo);

- Raw text -


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