Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

You can observe a lot just by watching. -- Yogi Berra


devel / comp.lang.fortran / Re: Real number precision in fortran

SubjectAuthor
* Re: Real number precision in fortranRon Shepard
`* Re: Real number precision in fortranClive Page
 +* Re: Real number precision in fortrangah4
 |+- Re: Real number precision in fortranrobin vowels
 |`- Re: Real number precision in fortranRon Shepard
 `* Re: Real number precision in fortranThomas Koenig
  +- Re: Real number precision in fortranGary Scott
  +- Re: Real number precision in fortrangah4
  `- Re: Real number precision in fortrangah4

1
Re: Real number precision in fortran

<iSLGM.170694$8_8a.15539@fx48.iad>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=3512&group=comp.lang.fortran#3512

  copy link   Newsgroups: comp.lang.fortran
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx48.iad.POSTED!not-for-mail
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:102.0)
Gecko/20100101 Thunderbird/102.14.0
Subject: Re: Real number precision in fortran
Content-Language: en-US
References: <md5:pGi3RupVccKFVPmhCVRipg==>
Newsgroups: comp.lang.fortran
From: nospam@nowhere.org (Ron Shepard)
In-Reply-To: <md5:pGi3RupVccKFVPmhCVRipg==>
X-Forwarded-Message-Id: <md5:pGi3RupVccKFVPmhCVRipg==>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Lines: 51
Message-ID: <iSLGM.170694$8_8a.15539@fx48.iad>
X-Complaints-To: abuse@easynews.com
Organization: Forte - www.forteinc.com
X-Complaints-Info: Please be sure to forward a copy of ALL headers otherwise we will be unable to process your complaint properly.
Date: Sun, 27 Aug 2023 12:38:22 -0500
X-Received-Bytes: 2745
 by: Ron Shepard - Sun, 27 Aug 2023 17:38 UTC

On 8/27/23 8:52 AM, Kim Hanjoon wrote:
> Hi, I'm new at Fortran. I'm studying numerical analysis and I got question about real number precision
>
> program test
> real*8 x
>
> x = 1.0/3.0
>
> write(*,*) x
> stop
> end

First, let me rewrite your code in modern fortran and in an expanded form.

program testfp
use, intrinsic :: iso_fortran_env, only: real32, real64
real(real64) :: s
s = real( 1.0_real32 / 3.0_real32, kind=real64 )
write(*,*) s
end program testfp

There are of course many other ways to write this code, but this shows
explicitly what your code is doing. In the original expression, these
steps were all done implicitly by the compiler, so they might not be
obvious to a new fortran programmer.

Note that the assignment expression (the division) is evaluated in
real32 precision, and then that value is converted and assigned to the
real64 variable. That initial evaluation is where the precision was lost.

An important feature in fortran is that expressions are always evaluated
the same way, regardless of the type and kind of the lhs variable. Any
conversions, if necessary, are done just at the final assignment step.

If you want the expression to be evaluated entirely with real64
precision, then you would write it as something like

s = 1.0_real64 / 3.0_real64

There is no need for a conversion step, real(...,kind=real64), in this
assignment because the rhs and the lhs are both real64.

Hopefully, that explains the results that you see, and it shows you how
to change things if you want something different to be done.

Fortran gives the programmer complete control over the precision of
expression evaluation, so if the default evaluation and conversion rules
aren't what you want, you can always change the expression to do the
right thing.

$.02 -Ron Shepard

Re: Real number precision in fortran

<klbab8Fcec7U1@mid.individual.net>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=3556&group=comp.lang.fortran#3556

  copy link   Newsgroups: comp.lang.fortran
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: usenet@page2.eu (Clive Page)
Newsgroups: comp.lang.fortran
Subject: Re: Real number precision in fortran
Date: Thu, 31 Aug 2023 12:03:03 +0100
Lines: 48
Message-ID: <klbab8Fcec7U1@mid.individual.net>
References: <md5:pGi3RupVccKFVPmhCVRipg==> <iSLGM.170694$8_8a.15539@fx48.iad>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: individual.net GQzQxVOJQ1pvxG3K3764MgUkbxyfPfjKLs8NMht3guPhz++4vn
Cancel-Lock: sha1:hcWloZNZpLKcdXRpxbX8zSvUL1o= sha256:8EmPbDapQtphSkIhUUwjn6FIXhHob8OhOUFBD0CSumY=
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.14.0
Content-Language: en-GB
In-Reply-To: <iSLGM.170694$8_8a.15539@fx48.iad>
 by: Clive Page - Thu, 31 Aug 2023 11:03 UTC

On 27/08/2023 18:38, Ron Shepard wrote:
> On 8/27/23 8:52 AM, Kim Hanjoon wrote:
>> Hi, I'm new at Fortran. I'm studying numerical analysis and I got question about real number precision
>>
>> program test
>> real*8 x
>>
>> x = 1.0/3.0
>>
>> write(*,*) x
>> stop
>> end
>
> First, let me rewrite your code in modern fortran and in an expanded form.
>
> program testfp
>    use, intrinsic :: iso_fortran_env, only: real32, real64
>    real(real64) :: s
>    s = real( 1.0_real32 / 3.0_real32, kind=real64 )
>    write(*,*) s
> end program testfp
>
> There are of course many other ways to write this code, but this shows explicitly what your code is doing. In the original expression, these steps were all done implicitly by the compiler, so they might not be obvious to a new fortran programmer.
>
> Note that the assignment expression (the division) is evaluated in real32 precision, and then that value is converted and assigned to the real64 variable. That initial evaluation is where the precision was lost.
>
> An important feature in fortran is that expressions are always evaluated the same way, regardless of the type and kind of the lhs variable. Any conversions, if necessary, are done just at the final assignment step.
>
> If you want the expression to be evaluated entirely with real64 precision, then you would write it as something like
>
>    s = 1.0_real64 / 3.0_real64
>
> There is no need for a conversion step, real(...,kind=real64), in this assignment because the rhs and the lhs are both real64.
>
> Hopefully, that explains the results that you see, and it shows you how to change things if you want something different to be done.
>
> Fortran gives the programmer complete control over the precision of expression evaluation, so if the default evaluation and conversion rules aren't what you want, you can always change the expression to do the right thing.
>
> $.02 -Ron Shepard

That is absolutely right. But what might be worth saying is that traditionally Fortran Standards have resolutely refused to specify the precision of arithmetic or the number of bits of storage. Almost since the start one could use REAL or DOUBLE PRECISION types, the latter now deprecated of course, but without being able to specify what they meant until fairly recently with functions like SELECTED_REAL_KIND. This used to be a serious problem. Some years ago I got code working on both a mini-computer and a mainframe where the DOUBLE PRECISION on the mini-computer had fewer digits than the REAL on the mainframe. And this was pefectly legal in the Fortran of the time, and indeed still would be if the hardware still existed.

What has changed is the introduction of the iso_fortran_env intrinsic module which means that Fortran programmers can finally catch up with the rest of the computing world, since pretty much all current processors offer the choice of 32-bits or 64-bits for their floating-point storage and arithmetic (plus other options in some cases). But the syntax for using them, as Ron Shepard showed above, is not very obvious ane really a bit verbose. It is only properly explained in a very few modern Fortran texts. Many old texts will mislead you badly.

It would be nice if we could get the next Fortran Standard written so that 32-bit and 64-bit arithmetic come by default, but I fear that this would break too much existing code for it to be possible.

--
Clive Page

Re: Real number precision in fortran

<2e75a863-a094-4eb8-a7de-603cf3f5a2dbn@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=3557&group=comp.lang.fortran#3557

  copy link   Newsgroups: comp.lang.fortran
X-Received: by 2002:a05:620a:3d0c:b0:765:a4f2:51ec with SMTP id tq12-20020a05620a3d0c00b00765a4f251ecmr61945qkn.4.1693485654389;
Thu, 31 Aug 2023 05:40:54 -0700 (PDT)
X-Received: by 2002:a05:6a00:17a8:b0:68a:2c24:57de with SMTP id
s40-20020a056a0017a800b0068a2c2457demr387989pfg.1.1693485654147; Thu, 31 Aug
2023 05:40:54 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.goja.nl.eu.org!3.eu.feeder.erje.net!feeder.erje.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.fortran
Date: Thu, 31 Aug 2023 05:40:53 -0700 (PDT)
In-Reply-To: <klbab8Fcec7U1@mid.individual.net>
Injection-Info: google-groups.googlegroups.com; posting-host=2601:602:9700:4689:791f:f23c:5cac:8966;
posting-account=gLDX1AkAAAA26M5HM-O3sVMAXdxK9FPA
NNTP-Posting-Host: 2601:602:9700:4689:791f:f23c:5cac:8966
References: <md5:pGi3RupVccKFVPmhCVRipg==> <iSLGM.170694$8_8a.15539@fx48.iad> <klbab8Fcec7U1@mid.individual.net>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <2e75a863-a094-4eb8-a7de-603cf3f5a2dbn@googlegroups.com>
Subject: Re: Real number precision in fortran
From: gah4@u.washington.edu (gah4)
Injection-Date: Thu, 31 Aug 2023 12:40:54 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
 by: gah4 - Thu, 31 Aug 2023 12:40 UTC

On Thursday, August 31, 2023 at 4:03:09 AM UTC-7, Clive Page wrote:

(snip)

> That is absolutely right. But what might be worth saying is that traditionally Fortran
> Standards have resolutely refused to specify the precision of arithmetic or the
> number of bits of storage. Almost since the start one could use REAL or
> DOUBLE PRECISION types, the latter now deprecated of course, but without being
> able to specify what they meant until fairly recently with functions like
> SELECTED_REAL_KIND. This used to be a serious problem.
> Some years ago I got code working on both a mini-computer and a mainframe
> where the DOUBLE PRECISION on the mini-computer had fewer digits than the
> REAL on the mainframe.

(snip)

> It would be nice if we could get the next Fortran Standard written so that 32-bit
> and 64-bit arithmetic come by default, but I fear that this would break too much
> existing code for it to be possible.
From the beginning, or close to it, it was 36 and 72 bits.

But yes, the CDC 60 bit machines, and then Cray 64 bit machines, did complicate things.

I believe that they had to support software double precision to satisfy the standard,
even if nobody used it.

I have noticed, though, the for IEEE 754 decimal, the basic types are the 64 and 128 bit types.
I think that means that a Fortran compiler should support them as REAL and DOUBLE
PRECISION. Not that it wouldn't support others, though.

It does seem that hardware support of 128 bit binary types has been slow at arriving.

IBM supported 128 bits (in hexadecimal) from the 360/85 and all S/370 models.
And then ESA/390 added IEEE 754 binary types, they had 32, 64, and 128.

Also RISC-V has a 128 bit format, though I don't know which actual processors
that you can buy support it.

Re: Real number precision in fortran

<5528737e-7daa-4d25-997f-93660341c0aen@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=3558&group=comp.lang.fortran#3558

  copy link   Newsgroups: comp.lang.fortran
X-Received: by 2002:a05:6214:a08:b0:63c:fc43:fd51 with SMTP id dw8-20020a0562140a0800b0063cfc43fd51mr66635qvb.11.1693487881314;
Thu, 31 Aug 2023 06:18:01 -0700 (PDT)
X-Received: by 2002:ad4:4e34:0:b0:649:b91b:856 with SMTP id
dm20-20020ad44e34000000b00649b91b0856mr76642qvb.2.1693487881095; Thu, 31 Aug
2023 06:18:01 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.fortran
Date: Thu, 31 Aug 2023 06:18:00 -0700 (PDT)
In-Reply-To: <2e75a863-a094-4eb8-a7de-603cf3f5a2dbn@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=49.184.6.230; posting-account=L5wwzgoAAAAfQcZzW8eLJKqyFogVIeWA
NNTP-Posting-Host: 49.184.6.230
References: <md5:pGi3RupVccKFVPmhCVRipg==> <iSLGM.170694$8_8a.15539@fx48.iad>
<klbab8Fcec7U1@mid.individual.net> <2e75a863-a094-4eb8-a7de-603cf3f5a2dbn@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <5528737e-7daa-4d25-997f-93660341c0aen@googlegroups.com>
Subject: Re: Real number precision in fortran
From: robin51@dodo.com.au (robin vowels)
Injection-Date: Thu, 31 Aug 2023 13:18:01 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 3485
 by: robin vowels - Thu, 31 Aug 2023 13:18 UTC

On Thursday, 31 August 2023 at 22:40:56 UTC+10, gah4 wrote:
> On Thursday, August 31, 2023 at 4:03:09 AM UTC-7, Clive Page wrote:
>
> (snip)
> > That is absolutely right. But what might be worth saying is that traditionally Fortran
> > Standards have resolutely refused to specify the precision of arithmetic or the
> > number of bits of storage. Almost since the start one could use REAL or
> > DOUBLE PRECISION types, the latter now deprecated of course, but without being
> > able to specify what they meant until fairly recently with functions like
> > SELECTED_REAL_KIND. This used to be a serious problem.
> > Some years ago I got code working on both a mini-computer and a mainframe
> > where the DOUBLE PRECISION on the mini-computer had fewer digits than the
> > REAL on the mainframe.
> (snip)
> > It would be nice if we could get the next Fortran Standard written so that 32-bit
> > and 64-bit arithmetic come by default, but I fear that this would break too much
> > existing code for it to be possible.
..
> From the beginning, or close to it, it was 36 and 72 bits.
..
From the beginning, it was 32 bit words.
Pilot ACE (1950) and DEUCE (1955) were 32/64 bit machines,.
'
> But yes, the CDC 60 bit machines, and then Cray 64 bit machines, did complicate things.
...
There were also 48-bit machines.
..
> I believe that they had to support software double precision to satisfy the standard,
> even if nobody used it.
>
> I have noticed, though, the for IEEE 754 decimal, the basic types are the 64 and 128 bit types.
> I think that means that a Fortran compiler should support them as REAL and DOUBLE
> PRECISION. Not that it wouldn't support others, though.
>
> It does seem that hardware support of 128 bit binary types has been slow at arriving.
>
> IBM supported 128 bits (in hexadecimal) from the 360/85 and all S/370 models.
> And then ESA/390 added IEEE 754 binary types, they had 32, 64, and 128.
>
> Also RISC-V has a 128 bit format, though I don't know which actual processors
> that you can buy support it.

Re: Real number precision in fortran

<jA3IM.749124$mPI2.636933@fx15.iad>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=3561&group=comp.lang.fortran#3561

  copy link   Newsgroups: comp.lang.fortran
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx15.iad.POSTED!not-for-mail
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:102.0)
Gecko/20100101 Thunderbird/102.14.0
Subject: Re: Real number precision in fortran
Content-Language: en-US
Newsgroups: comp.lang.fortran
References: <md5:pGi3RupVccKFVPmhCVRipg==> <iSLGM.170694$8_8a.15539@fx48.iad>
<klbab8Fcec7U1@mid.individual.net>
<2e75a863-a094-4eb8-a7de-603cf3f5a2dbn@googlegroups.com>
From: nospam@nowhere.org (Ron Shepard)
In-Reply-To: <2e75a863-a094-4eb8-a7de-603cf3f5a2dbn@googlegroups.com>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Lines: 25
Message-ID: <jA3IM.749124$mPI2.636933@fx15.iad>
X-Complaints-To: abuse@easynews.com
Organization: Forte - www.forteinc.com
X-Complaints-Info: Please be sure to forward a copy of ALL headers otherwise we will be unable to process your complaint properly.
Date: Thu, 31 Aug 2023 11:53:35 -0500
X-Received-Bytes: 2283
 by: Ron Shepard - Thu, 31 Aug 2023 16:53 UTC

On 8/31/23 7:40 AM, gah4 wrote:
> I believe that they had to support software double precision to satisfy the standard,
> even if nobody used it.

The ANSI f77 standard book was published so that when you opened a page,
the left hand side of the book was the standard subset, and the right
hand side page was the full standard. If I remember correctly, the
standard subset did not require support for double precision, complex,
or character types. I used a fortran compiler in the early 1980s that
supported complex and character but not double precision. Its REAL type
was 64-bit, so as you say, most programmers did not really need 128-bit
double precision. A subsequent compiler revision did eventually support
128-bit double precision using a mix of hardware and software, so it was
slow.

Nowadays, the de facto standard is that REAL is REAL32, which then means
that REAL64 is DOUBLE PRECISION. I do not know of any compiler in use
these days that contradicts that convention (unless compiler options are
specified). I doubt that the standard will incorporate that convention
due to the backwards compatibility issue and to the possibility that
someone might still want to write a modern fortran compiler for legacy
36-bit, 60-bit, or 64-bit hardware.

$.02 -Ron Shepard

Re: Real number precision in fortran

<uct2ou$39k58$1@newsreader4.netcologne.de>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=3574&group=comp.lang.fortran#3574

  copy link   Newsgroups: comp.lang.fortran
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!newsreader4.netcologne.de!news.netcologne.de!.POSTED.2a0a-a540-3bee-0-89b4-b22a-73c1-1eb4.ipv6dyn.netcologne.de!not-for-mail
From: tkoenig@netcologne.de (Thomas Koenig)
Newsgroups: comp.lang.fortran
Subject: Re: Real number precision in fortran
Date: Fri, 1 Sep 2023 16:16:30 -0000 (UTC)
Organization: news.netcologne.de
Distribution: world
Message-ID: <uct2ou$39k58$1@newsreader4.netcologne.de>
References: <md5:pGi3RupVccKFVPmhCVRipg==>
<iSLGM.170694$8_8a.15539@fx48.iad> <klbab8Fcec7U1@mid.individual.net>
Injection-Date: Fri, 1 Sep 2023 16:16:30 -0000 (UTC)
Injection-Info: newsreader4.netcologne.de; posting-host="2a0a-a540-3bee-0-89b4-b22a-73c1-1eb4.ipv6dyn.netcologne.de:2a0a:a540:3bee:0:89b4:b22a:73c1:1eb4";
logging-data="3461288"; mail-complaints-to="abuse@netcologne.de"
User-Agent: slrn/1.0.3 (Linux)
 by: Thomas Koenig - Fri, 1 Sep 2023 16:16 UTC

Clive Page <usenet@page2.eu> schrieb:
> That is absolutely right. But what might be worth saying is that
> traditionally Fortran Standards have resolutely refused to specify
> the precision of arithmetic or the number of bits of storage.
> Almost since the start one could use REAL or DOUBLE PRECISION
> types, the latter now deprecated of course, but without being able
> to specify what they meant until fairly recently with functions
> like SELECTED_REAL_KIND.

"Fairly recently" meaning 1991, the year that Fortran 90 came out.
It's only been a bit more than 30 years.

By comparision, Java was released in 1996.

Re: Real number precision in fortran

<uct3o6$3sprf$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=3575&group=comp.lang.fortran#3575

  copy link   Newsgroups: comp.lang.fortran
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: garylscott@sbcglobal.net (Gary Scott)
Newsgroups: comp.lang.fortran
Subject: Re: Real number precision in fortran
Date: Fri, 1 Sep 2023 11:33:10 -0500
Organization: A noiseless patient Spider
Lines: 16
Message-ID: <uct3o6$3sprf$1@dont-email.me>
References: <md5:pGi3RupVccKFVPmhCVRipg==> <iSLGM.170694$8_8a.15539@fx48.iad>
<klbab8Fcec7U1@mid.individual.net> <uct2ou$39k58$1@newsreader4.netcologne.de>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Fri, 1 Sep 2023 16:33:10 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="254661f02cb65f3f104b5c6fa8846eb1";
logging-data="4089711"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/bdVwQaOOrWfZL0xIPl1tFnLVtbzB/m9Y="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:dXEC+8cLPFne0B5rm2U0nt2C7pY=
In-Reply-To: <uct2ou$39k58$1@newsreader4.netcologne.de>
Content-Language: en-US
 by: Gary Scott - Fri, 1 Sep 2023 16:33 UTC

On 9/1/2023 11:16 AM, Thomas Koenig wrote:
> Clive Page <usenet@page2.eu> schrieb:
>> That is absolutely right. But what might be worth saying is that
>> traditionally Fortran Standards have resolutely refused to specify
>> the precision of arithmetic or the number of bits of storage.
>> Almost since the start one could use REAL or DOUBLE PRECISION
>> types, the latter now deprecated of course, but without being able
>> to specify what they meant until fairly recently with functions
>> like SELECTED_REAL_KIND.
>
> "Fairly recently" meaning 1991, the year that Fortran 90 came out.
> It's only been a bit more than 30 years.
>
> By comparision, Java was released in 1996.
1965 seems fairly recent to me, I remember tooling around in grandpas
1956 pontiac star chief :)

Re: Real number precision in fortran

<448b50fa-6cbc-49f1-a7f7-7df6acab99bdn@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=3576&group=comp.lang.fortran#3576

  copy link   Newsgroups: comp.lang.fortran
X-Received: by 2002:ad4:4e34:0:b0:64f:93be:c78b with SMTP id dm20-20020ad44e34000000b0064f93bec78bmr78534qvb.6.1693603620385;
Fri, 01 Sep 2023 14:27:00 -0700 (PDT)
X-Received: by 2002:a05:6a00:414c:b0:68a:5e6f:9975 with SMTP id
bv12-20020a056a00414c00b0068a5e6f9975mr1218007pfb.1.1693603620077; Fri, 01
Sep 2023 14:27:00 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border-2.nntp.ord.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.fortran
Date: Fri, 1 Sep 2023 14:26:59 -0700 (PDT)
In-Reply-To: <uct2ou$39k58$1@newsreader4.netcologne.de>
Injection-Info: google-groups.googlegroups.com; posting-host=2601:602:9700:4689:4529:4539:7305:a2a2;
posting-account=gLDX1AkAAAA26M5HM-O3sVMAXdxK9FPA
NNTP-Posting-Host: 2601:602:9700:4689:4529:4539:7305:a2a2
References: <md5:pGi3RupVccKFVPmhCVRipg==> <iSLGM.170694$8_8a.15539@fx48.iad>
<klbab8Fcec7U1@mid.individual.net> <uct2ou$39k58$1@newsreader4.netcologne.de>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <448b50fa-6cbc-49f1-a7f7-7df6acab99bdn@googlegroups.com>
Subject: Re: Real number precision in fortran
From: gah4@u.washington.edu (gah4)
Injection-Date: Fri, 01 Sep 2023 21:27:00 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Lines: 16
 by: gah4 - Fri, 1 Sep 2023 21:26 UTC

On Friday, September 1, 2023 at 9:16:35 AM UTC-7, Thomas Koenig wrote:
> Clive Page <use...@page2.eu> schrieb:

(snip)

> "Fairly recently" meaning 1991, the year that Fortran 90 came out.
> It's only been a bit more than 30 years.

> By comparision, Java was released in 1996.

Java not only specifies the size of the data types, but requires floating point to be IEEE 754 binary.

Rumor is that IBM added BFP (IEEE 754 binary) to ESA/390 so that it could run Java.

Re: Real number precision in fortran

<5c8130f0-9162-4993-b5b9-8c42d9fbdf04n@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=3577&group=comp.lang.fortran#3577

  copy link   Newsgroups: comp.lang.fortran
X-Received: by 2002:a05:620a:4688:b0:76d:8cc1:559d with SMTP id bq8-20020a05620a468800b0076d8cc1559dmr107754qkb.15.1693603864735;
Fri, 01 Sep 2023 14:31:04 -0700 (PDT)
X-Received: by 2002:a17:902:fb50:b0:1bf:702b:f208 with SMTP id
lf16-20020a170902fb5000b001bf702bf208mr1046732plb.11.1693603864464; Fri, 01
Sep 2023 14:31:04 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.fortran
Date: Fri, 1 Sep 2023 14:31:03 -0700 (PDT)
In-Reply-To: <uct2ou$39k58$1@newsreader4.netcologne.de>
Injection-Info: google-groups.googlegroups.com; posting-host=2601:602:9700:4689:4529:4539:7305:a2a2;
posting-account=gLDX1AkAAAA26M5HM-O3sVMAXdxK9FPA
NNTP-Posting-Host: 2601:602:9700:4689:4529:4539:7305:a2a2
References: <md5:pGi3RupVccKFVPmhCVRipg==> <iSLGM.170694$8_8a.15539@fx48.iad>
<klbab8Fcec7U1@mid.individual.net> <uct2ou$39k58$1@newsreader4.netcologne.de>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <5c8130f0-9162-4993-b5b9-8c42d9fbdf04n@googlegroups.com>
Subject: Re: Real number precision in fortran
From: gah4@u.washington.edu (gah4)
Injection-Date: Fri, 01 Sep 2023 21:31:04 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 1742
 by: gah4 - Fri, 1 Sep 2023 21:31 UTC

On Friday, September 1, 2023 at 9:16:35 AM UTC-7, Thomas Koenig wrote:
> Clive Page <use...@page2.eu> schrieb:

(snip)

> "Fairly recently" meaning 1991, the year that Fortran 90 came out.
> It's only been a bit more than 30 years.

> By comparision, Java was released in 1996.

My first Fortran programs were in 1972. Doesn't seem so long ago.

The IBM OS/360 Fortran manual was my 8th grade graduation present.

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor