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.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM 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-7-bit Path: g2news1.google.com!postnews.google.com!d25g2000yqc.googlegroups.com!not-for-mail From: Mark Lorenzen Newsgroups: comp.lang.ada Subject: Re: simple question on long_float/short_float Date: Thu, 30 Sep 2010 02:59:42 -0700 (PDT) Organization: http://groups.google.com Message-ID: <64763a86-ac43-428c-8ca1-7eeb208b0765@d25g2000yqc.googlegroups.com> References: NNTP-Posting-Host: 193.163.1.105 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: posting.google.com 1285840782 16835 127.0.0.1 (30 Sep 2010 09:59:42 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Thu, 30 Sep 2010 09:59:42 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: d25g2000yqc.googlegroups.com; posting-host=193.163.1.105; posting-account=Srm5lQoAAAAEMX9rv2ilEKR6FDPapmSq User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; da; rv:1.9.2.10) Gecko/20100914 Firefox/3.6.10,gzip(gfe) Xref: g2news1.google.com comp.lang.ada:14330 Date: 2010-09-30T02:59:42-07:00 List-Id: On 30 Sep., 10:45, "Nasser M. Abbasi" wrote: > > 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 You should generally not use the predefined types for anything other than interfacing with other languages e.g. C or Fortran. Don't think in terms of "Ada has these types..." but define the types you need. Ada is not Fortran, so don't code Fortran in Ada. - Mark L