Nп/п : 9 из 100
 От   : gah4                                2:5075/128        28 авг 23 11:19:55
 К    : pehache                                               28 авг 23 21:21:03
 Тема : Re: Real number precision in fortran
----------------------------------------------------------------------------------
                                                                                 
@MSGID:
<d6f9c057-cb79-4d41-93b0-f0ddd830344bn@googlegroups.com> 6f99c196
@REPLY:
f538c215
@REPLYADDR gah4 <gah4@u.washington.edu>
@REPLYTO 2:5075/128 gah4
@CHRS: CP866 2
@RFC: 1 0
@RFC-References:
<873f9cc4-6139-4bd3-9ed8-de7e37a76730n@googlegroups.com> <d24b9f27-36da-4011-963d-eba713b1f16an@googlegroups.com>
<3cb57395-be28-4451-9e98-c20ed41386fbn@googlegroups.com>
@RFC-Message-ID:
<d6f9c057-cb79-4d41-93b0-f0ddd830344bn@googlegroups.com>
@TZUTC: -0700
@PID: G2/1.0
@TID: FIDOGATE-5.12-ge4e8b94
On Monday, August 28, 2023 at 9:22:17 AM UTC-7, pehache wrote:

(snip)

> The default precision is the one of the REAL type, nothing more. The 
> standard does not specify the actual size and precision of this type. 
> Although it is nowadays mapped to the IEEE754 single precision 32 bits 
> floating point by most (if not all) compilers, it was not the case in the 
> past. Notably, on the CRAY machines it was mapped to the hardware native 
> 64 bits floating point. 
 
Portable programs in those days would have sets of declarations at the
top, all except the one in use commented out.

Besides those needed for the different bit widths, some considered
finer details of the floating point.  For one, there is epsilon, which
depends on the significand size. Or depending on the rounding modes.
--- G2/1.0
 * Origin: usenet.network (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    
                                                                                
В этой области больше нет сообщений.

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