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=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 10.182.55.105 with SMTP id r9mr39329508obp.3.1430698189184; Sun, 03 May 2015 17:09:49 -0700 (PDT) X-Received: by 10.50.1.43 with SMTP id 11mr106406igj.8.1430698189168; Sun, 03 May 2015 17:09:49 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!mx02.eternal-september.org!feeder.eternal-september.org!news.glorb.com!l13no13489121iga.0!news-out.google.com!kd3ni7465igb.0!nntp.google.com!l13no13489113iga.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Sun, 3 May 2015 17:09:48 -0700 (PDT) In-Reply-To: <1i8x3r1feyzkt$.j85il7e3wpv9.dlg@40tude.net> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=123.2.70.40; posting-account=S_MdrwoAAAD7T2pxG2e393dk6y0tc0Le NNTP-Posting-Host: 123.2.70.40 References: <1kxou0nloqg9c$.1x0itzgdrlosm$.dlg@40tude.net> <1i8x3r1feyzkt$.j85il7e3wpv9.dlg@40tude.net> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Re: getting same output as gfortran, long_float From: robin.vowels@gmail.com Injection-Date: Mon, 04 May 2015 00:09:49 +0000 Content-Type: text/plain; charset=ISO-8859-1 Xref: news.eternal-september.org comp.lang.ada:25712 Date: 2015-05-03T17:09:48-07:00 List-Id: On Friday, May 1, 2015 at 4:52:52 PM UTC+10, Dmitry A. Kazakov wrote: > On Thu, 30 Apr 2015 20:12:47 -0500, Nasser M. Abbasi wrote: > > > I found that gfortran can do 128 bit floating point without > > the use of the compiler switch -fdefault-real-8. Which will > > map to similar thing as the above Ada construct: > > > > ------------------- > > PROGRAM foo > > IMPLICIT NONE > > REAL(KIND = 16) :: x !-- kind=16 tells it is double quad > > x = 12.0D0 * 0.0001D0/(1.0D0 * (1.0D0 - 0.1D0)**4 ) > > PRINT *, x > > END PROGRAM > > ------------------ > > I didn't use FORTRAN for decades, but in good old FORTRAN-IV you declare > specific lengths using T*n, e.g. > > INTEGER*2 > REAL*4 > REAL*8 > > so, I would suggest, maybe naively, > > REAL*16 All those statements are non-standard, and some current compilers treat them as errors.