🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.forth
Article #156

Re: Tests for (DDFS.)

#156
From: Krishna Myneni
Date: Tue, 20 Oct 2026 22:41
26 lines
2213 bytes
On 10/20/26 12:26 PM, marcel hendrix wrote:
> On 10/20/2026 6:15 PM, Krishna Myneni wrote:
>> On 10/20/26 8:47 AM, Krishna Myneni wrote:
>> ...
>>>
>>> ...
>>> The output shows that (DDFS.) as presently implemented in dd_io.4th 
>>> fails for one of the test cases (test 2), and probably for many more 
>>> cases.
>>> ...
>>
>> Typing the string outputs from (FS.) and (DDFS.) shows that (DDFS.) is 
>> not rounding properly.
> Simply setting the low part of a double double to 0 might be a bit too 
> simplistic? 

No, it is correct. Remember that the double double precision is 
considered to be the sum of the two double precision numbers within a 
wider binary format. The 0.0e is an extension of the same binary pattern 
of the first double padded with 0 bits, so it does not change the value 
of the exact decimal representation, when the double is extended in this 
way to dd.

--
KM
Technical Details
Message-ID: <11b8qms$3e9t0$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>

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: Krishna Myneni <krishna.myneni@ccreweb.org>
Newsgroups: comp.lang.forth
Subject: Re: Tests for (DDFS.)
Date: Tue, 20 Oct 2026 17:41:32 -0500
Organization: A noiseless patient Spider
Lines: 26
Message-ID: <11b8qms$3e9t0$1@dont-email.me>
References: <11b7rcu$31u3u$1@dont-email.me> <11b8427$35l54$1@dont-email.me>
 <11b887g$p2rm$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Tue, 20 Oct 2026 22:41:33 +0000 (UTC)
Injection-Info: dont-email.me;
	logging-data="3614624"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX19UjpjaDNYB6HQzb2FAjbvH"; posting-host="a4217b4f3342bc26cffa14f31fc9d3e3"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:HgOwIoQeQCW1UE5CbYE9vXFEwdg= sha256:UgRnW8IF09CI6lSQMSliZz9uZ/tOwijUkbBWfmFLatE=
	sha1:c/hxiGpJn6OX4z5Zi7qrNDPzuTU= sha256:JYxYtniv7A/d47h/c5JOYz3mvj5m3MJDaEojfmyXU14=
Content-Language: en-US
In-Reply-To: <11b887g$p2rm$1@dont-email.me>