From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,8c0fcfc0a87e61fc X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII Path: g2news1.google.com!news4.google.com!proxad.net!feeder1-2.proxad.net!usenet-fr.net!gegeweb.org!aioe.org!not-for-mail From: "Nasser M. Abbasi" Newsgroups: comp.lang.ada Subject: Re: simple question on long_float/short_float Date: Thu, 30 Sep 2010 01:45:56 -0700 Organization: Aioe.org NNTP Server Message-ID: References: Reply-To: nma@12000.org NNTP-Posting-Host: tUYQ4Ty9mMw9Pdc8TJRFQA.user.speranza.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Complaints-To: abuse@aioe.org X-Notice: Filtered by postfilter v. 0.8.2 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.12) Gecko/20100914 Thunderbird/3.0.8 Xref: g2news1.google.com comp.lang.ada:14327 Date: 2010-09-30T01:45:56-07:00 List-Id: On 9/30/2010 1:31 AM, Nasser M. Abbasi wrote: > 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. >> I just looked it up. So, if I use Interfaces.Fortran Reals and Double_Precision I think that would be just fine. I have always thought that long_float and short_float where the same as Fortran's double and single precision. This is confusing. So Ada has Float, long_float, short_float, Interfaces.Fortran.Reals Interfaces.Fortran.Double_Precision --Nasser