🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.forth
Article #163

Re: Tests for (DDFS.)

#163
From: dxf
Date: Wed, 21 Oct 2026 12:52
37 lines
2644 bytes
On 21/10/2026 9:45 pm, marcel hendrix wrote:
> On 10/21/2026 10:50 AM, Krishna Myneni wrote:
>> On 10/20/26 8:05 PM, Krishna Myneni wrote:
> [...]> I post the execution output from dp2_to_dd for the 4 test cases in
>> ddfsdot-test.4th for anyone who wants to reproduce this output. The hex values of the two double precision numbers input to the program are shown (the second number is, of course, 64-bit 0). Note that the "D" exponent marker must be used to enter a double precision number in Fortran.
> 
> [...]
> 
> Strange. I can duplicate 1, 2, and 4 exactly, but not 3: the pair -0.10000000133514320E-09 0.00000000000000000E+00 .

Is your >DD broken that you need to enter literals using another way?

enter  3.0000000000000004440892098500626e-1
print  3.0000000000000004440892098500625E-1
          4  5  6  7  8  9  A  B  C  D  E  F  0  1
0193:2DF4 34 33 33 33 33 33 D3 3F 00 00 00 00 00 00
\ 3F D3 33 33 33 33 33 34                 0

enter  9.9999993504564039245746141539976e-39
print  9.9999993504564039245746141539977E-39
          4  5  6  7  8  9  A  B  C  D  E  F  0  1
0193:2DF4 00 00 00 80 FB 38 0B 38 00 00 00 00 00 00
\ 38 0B 38 FB 80 00 00 00                 0

enter  -1.0000000133514319600180897396057e-10
print  -1.0000000133514319600180897396056E-10
          4  5  6  7  8  9  A  B  C  D  E  F  0  1
0193:2DF4 00 00 00 E0 DF 7C DB BD 00 00 00 00 00 00
\ BD DB 7C DF E0 00 00 00                 0

enter  -9.0071992547409920000000000000000e15
print  -9.0071992547409920000000000000000E15
          4  5  6  7  8  9  A  B  C  D  E  F  0  1
0193:2DF4 00 00 00 00 00 00 40 C3 00 00 00 00 00 00
\ C3 40 00 00 00 00 00 00                 0

Technical Details
Message-ID: <6ad8b59e$1@news.ausics.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!news.ausics.net!not-for-mail
References: <11b7rcu$31u3u$1@dont-email.me> <11b8427$35l54$1@dont-email.me> <11b887g$p2rm$1@dont-email.me> <6ad8043a$1@news.ausics.net> <11b935k$3gr0s$1@dont-email.me> <11b9ud7$3oofr$1@dont-email.me> <11ba545$294uk$1@dont-email.me>

Show Full Headers
Complete Article Headers
Date: Wed, 21 Oct 2026 23:52:47 +1100
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
Subject: Re: Tests for (DDFS.)
Newsgroups: comp.lang.forth
References: <11b7rcu$31u3u$1@dont-email.me> <11b8427$35l54$1@dont-email.me>
 <11b887g$p2rm$1@dont-email.me> <6ad8043a$1@news.ausics.net>
 <11b935k$3gr0s$1@dont-email.me> <11b9ud7$3oofr$1@dont-email.me>
 <11ba545$294uk$1@dont-email.me>
Content-Language: en-GB
From: dxf <dxforth@gmail.com>
In-Reply-To: <11ba545$294uk$1@dont-email.me>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: news.ausics.net
Message-ID: <6ad8b59e$1@news.ausics.net>
Organization: Ausics - https://newsgroups.ausics.net
Lines: 37
X-Complaints: abuse@ausics.net
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!news.ausics.net!not-for-mail