comp.lang.ada
 help / color / mirror / Atom feed
From: Martin Krischik <martin@krischik.com>
Subject: Re: Float precision - gnat vs objectada
Date: Wed, 01 Dec 2004 20:03:41 +0100
Date: 2004-12-01T20:03:41+01:00	[thread overview]
Message-ID: <1237548.0CXMffCGLb@linux1.krischik.com> (raw)
In-Reply-To: 1c8dc73c.0412010746.272b978@posting.google.com

P Torle wrote:

> I'm working on a Ada95/C project that shall run on both Linux and
> Windows.
> I have some problems getting the same float precision on both
> platforms.
> Example:
> -----------------------------
> subtype Real is Long_Float;

Maybe you want to use Long_Long_Float for maximum precision.

See http://en.wikibooks.org/wiki/Programming:Ada:Packages:Standard:GNAT for
predefined float types in GNAT

And, of course, when you need compatiblty betreen  GNAT and ObjectAda you
will need to define your own float type.

With Regards

Martin
-- 
mailto://krischik@users.sourceforge.net
http://www.ada.krischik.com



  parent reply	other threads:[~2004-12-01 19:03 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-12-01 15:46 Float precision - gnat vs objectada P Torle
2004-12-01 18:50 ` David C. Hoos
2004-12-01 19:03 ` Martin Krischik [this message]
2004-12-02  7:51   ` Jeffrey Carter
2004-12-02 10:10     ` Martin Krischik
2004-12-01 23:32 ` Mark Lorenzen
2004-12-02  8:32 ` Dmitry A. Kazakov
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox