comp.lang.ada
 help / color / mirror / Atom feed
From: "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de>
Subject: Re: 32-bit float and 64-bit float
Date: Mon, 14 Aug 2017 11:01:46 +0200
Date: 2017-08-14T11:01:46+02:00	[thread overview]
Message-ID: <omrotq$1me3$1@gioia.aioe.org> (raw)
In-Reply-To: omrnp7$1ko3$1@gioia.aioe.org

On 14/08/2017 10:42, Victor Porton wrote:

> I think Float and Long_Float will do the job on most compilers and machines.

Possibly.

> But maybe I should instead use "digits" in Ada? If yes, then how many
> digits?

Yes, digits is the safe way. You find IEEE 754 precision data for 
instance in Wikipedia:

    https://en.wikipedia.org/wiki/IEEE_754

But you would, AFAIK, lose non-numeric values (like Inf), which is a 
good thing.

-- 
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de

  reply	other threads:[~2017-08-14  9:01 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-08-13 22:29 32-bit float and 64-bit float Victor Porton
2017-08-14  6:55 ` Dmitry A. Kazakov
2017-08-14  8:42   ` Victor Porton
2017-08-14  9:01     ` Dmitry A. Kazakov [this message]
2017-08-15 18:11     ` Charles H. Sampson
replies disabled

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