Nп/п : 30 из 100
 От   : Ron Shepard                         2:5075/128        31 авг 23 11:53:35
 К    : gah4                                                  31 авг 23 19:56:02
 Тема : Re: Real number precision in fortran
----------------------------------------------------------------------------------
                                                                                 
@MSGID: mPI2.636933@fx15.iad>
3a8e6965
@REPLY:
<2e75a863-a094-4eb8-a7de-603cf3f5a2dbn@googlegroups.com> 9b4eb26f
@REPLYADDR Ron Shepard <nospam@nowhere.org>
@REPLYTO 2:5075/128 Ron Shepard
@CHRS: CP866 2
@RFC: 1 0
@RFC-References:
8_8a.15539@fx48.iad> <klbab8Fcec7U1@mid.individual.net>
<2e75a863-a094-4eb8-a7de-603cf3f5a2dbn@googlegroups.com>
@RFC-Message-ID:
mPI2.636933@fx15.iad>
@TZUTC: -0500
@PID: Mozilla/5.0 (Macintosh; Intel Mac OS X
10.13; rv:102.0) Gecko/20100101 Thunderbird/102.14.0
@TID: FIDOGATE-5.12-ge4e8b94
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
 --- Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:102.0)
Gecko/20100101 Thunderbird/102.14.0
 * Origin: Forte - www.forteinc.com (2:5075/128)
SEEN-BY: 5001/100 5005/49 5015/255 5019/40 5020/715
848 1042 4441 12000
SEEN-BY: 5030/49 1081 5058/104 5075/128
@PATH: 5075/128 5020/1042 4441



   GoldED+ VK   │                                                 │   09:55:30    
                                                                                
В этой области больше нет сообщений.

Остаться здесь
Перейти к списку сообщений
Перейти к списку эх