comp.lang.ada
 help / color / mirror / Atom feed
From: "Nasser M. Abbasi" <nma@12000.org>
Subject: Re: simple question on long_float/short_float
Date: Thu, 30 Sep 2010 01:31:41 -0700
Date: 2010-09-30T01:31:41-07:00	[thread overview]
Message-ID: <i81htk$nqf$1@speranza.aioe.org> (raw)
In-Reply-To: i81cff$nlc$1@news.eternal-september.org

On 9/29/2010 11:58 PM, J-P. Rosen wrote:
> Le 30/09/2010 08:17, Nasser M. Abbasi a �crit :
>> Ada experts:
>>
>> Is Ada's long_float like Fortran double precision? and short_float is
>> like Fortran single precision (just called real in Fortran)?


> There is nothing in the standard that guarantees this. Float and
> Long_Float are just floating point types, with greater accuracy for
> Long_Float.
>
> On the other hand, package Interfaces.Fortran provides types Real and
> Double_Precision, which are required to match the corresponding Fortran
> types.
>
>

Thanks. Are you saying that in Ada I can't make double precision 
variables and single precision variables? (as in Fortran?)

Is this for real? :)


So, what is Ada's Float? 32 bit or 64 bits?

--Nasser



  reply	other threads:[~2010-09-30  8:31 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-09-30  6:17 simple question on long_float/short_float Nasser M. Abbasi
2010-09-30  6:58 ` J-P. Rosen
2010-09-30  8:31   ` Nasser M. Abbasi [this message]
2010-09-30  8:45     ` Nasser M. Abbasi
2010-09-30  9:59       ` Mark Lorenzen
2010-09-30 13:30       ` Peter C. Chapin
2010-09-30  8:46     ` AdaMagica
2010-09-30 10:02     ` Georg Bauhaus
2010-09-30 15:37     ` Jeffrey Carter
2010-09-30 18:22       ` Nasser M. Abbasi
2010-09-30 21:21       ` Peter C. Chapin
2010-10-01  0:29         ` Nasser M. Abbasi
2010-10-01 11:13           ` Peter C. Chapin
2010-10-02 19:57         ` Simon Wright
2010-09-30 15:56     ` Adam Beneschan
2010-10-02  9:11 ` Nasser M. Abbasi
2010-10-02  9:48   ` Dmitry A. Kazakov
2010-10-02 20:09     ` Simon Wright
2010-10-02  9:56   ` Nasser M. Abbasi
2010-10-02 10:45   ` cjpsimon
2010-10-02 16:52   ` Jeffrey Carter
2010-10-02 20:01     ` Georg Bauhaus
replies disabled

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