🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.forth
Article #165

Re: Tests for (DDFS.)

#165
From: marcel hendrix
Date: Wed, 21 Oct 2026 17:05
60 lines
4160 bytes
On 10/21/2026 2:52 PM, dxf wrote:
> 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

FORTH> s" 3.0000000000000004440892098500626e-1"
2dup >DD cr 10 htab DDFE.   >DD pad dd! cr pad 32 dump
           3.0000000000000004440892098500626e-1
$013A60D0  34 33 33 33  33 33 D3 3F--00 00 00 00  00 00 00 00--00 00 00 
00  00 00 00 00--00 00 00 00  00 00 00 00

FORTH> s" -1.0000000133514319600180897396057e-10"
2dup >DD cr 10 htab DDFE.   >DD pad dd! cr pad 32 dump
           -1.0000000133514319600180897396057e-10
$013A60D0  00 00 00 E0  DF 7C DB BD--E2 18 37 CE  51 1C 55 37--00 00 00 
00  00 00 00 00--00 00 00 00  00 00 00 00

FORTH> s" -9.0071992547409920000000000000000e15"
2dup >DD cr 10 htab DDFE.   >DD pad dd! cr pad 32 dump
           -9.0071992547409920000000000000000e15
$013A60D0  00 00 00 00  00 00 40 C3--00 00 00 00  00 00 00 00--00 00 00 
00  00 00 00 00--00 00 00 00  00 00 00 00

It seems we have the same bitpatterns but slightly different text printouts.

-marcel
Technical Details
Message-ID: <11barcm$29rup$1@dont-email.me>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!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> <6ad8b59e$1@news.ausics.net>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail
From: marcel hendrix <mhx@iae.nl>
Newsgroups: comp.lang.forth
Subject: Re: Tests for (DDFS.)
Date: Wed, 21 Oct 2026 19:05:24 +0200
Organization: A noiseless patient Spider
Lines: 60
Message-ID: <11barcm$29rup$1@dont-email.me>
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> <6ad8b59e$1@news.ausics.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 21 Oct 2026 17:05:26 +0000 (UTC)
Injection-Info: dont-email.me;
	logging-data="2420697"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX19T5ZB0OSMQpGA36YSzKhyDWbGWbkef9ko="; posting-host="971f7ca8bb5a983d6f33f5136e398b14"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:aLE8EWu90JST0xN5xEfMW+kDZWg= sha256:0qQqy8D+3MkA/pA0XQQ9gS7foPQPc6qeLTecJ8E9Yos=
	sha1:SXTzYiuI4HfnfHis6OuTgRcxLV8= sha256:F8XICj+LVKLezlMdRVBA5kGWRgVj94to6fVfG87HdEc=
Content-Language: en-US
In-Reply-To: <6ad8b59e$1@news.ausics.net>