comp.lang.ada
 help / color / mirror / Atom feed
From: mheaney@ni.net (Matthew Heaney)
Subject: Re: Does Ada 95 conform to the IEEE 754 floating point standard?
Date: 1998/02/04
Date: 1998-02-04T00:00:00+00:00	[thread overview]
Message-ID: <mheaney-ya023680000402981936240001@news.ni.net> (raw)
In-Reply-To: gwinn-0402981333140001@dh5055139.res.ray.com


In article <gwinn-0402981333140001@dh5055139.res.ray.com>,
gwinn@res.ray.com (Joe Gwinn) wrote:

>IEEE 754 is a hardware representation, handled by the computer.  To access
>these 32-bit single-real numbers, one must declare variables as type
>"float" in ANSI C or type "FLOAT" in Ada [LRM section 3.5.7].  To access
>64-bit double-real numbers, one must declare variables as type "double" in
>C or type "LONG_FLOAT" in Ada [Ada LRM section 3.5.7]. 

It might be better to use the types Interfaces.IEEE_Float_32 and
Interfaces.IEEE_Float_64, because you have no guarantee that types Float
and Long_Float are any different.  If you want the IEEE format, then state
that explicitly, by using the types in package Interfaces.  See AARM B.2
(10.a).




  reply	other threads:[~1998-02-04  0:00 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-02-04  0:00 Does Ada 95 conform to the IEEE 754 floating point standard? Samir N. Muhammad
1998-02-04  0:00 ` Joe Gwinn
1998-02-04  0:00   ` Matthew Heaney [this message]
1998-02-05  0:00     ` Robert Dewar
1998-02-04  0:00 ` Robert Dewar
  -- strict thread matches above, loose matches on Subject: below --
1997-12-03  0:00 Samir N. Muhammad
1997-12-03  0:00 ` Robert Dewar
replies disabled

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