🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.forth
Article #160

Re: Tests for (DDFS.)

#160
From: marcel hendrix
Date: Wed, 21 Oct 2026 07:26
25 lines
2552 bytes
On 10/21/2026 2:15 AM, dxf wrote:
> On 21/10/2026 4:26 am, marcel hendrix wrote:
>> On 10/20/2026 6:15 PM, Krishna Myneni wrote:
[..]>> Simply setting the low part of a double double to 0 might be a 
bit too simplistic? Is the difference in the range of 1e-15 .. 1e-17 ?
> I wasn't aware any JVN packages performed rounding.   

By now, most of JVN's code has been replaced. The splitting code has 
been revised.
> AFAIK some implementations
> (yours?) limited numbers printed to PRECISION but that this was truncation - not
> rounding.  Rounding presented a whole new problem - why I never attempted it.

None of my floating point code rounds in any of the printing words, it 
indeed truncates. For it to  be automatic, an idea about the precision 
of the calculation is needed and the printing knows nothing about that.

However, current threads make interesting arguments for automatic 
internal rounding if constants and literals are to be portable, and/or 
if it is known that the user intends the number to be exact in some 
sense of the word for whatever reason. I still have fundamental 
questions there and follow the threads to be able to eventually 
formulate them (or see them answered).

-marcel
Technical Details
Message-ID: <11b9pei$28p9l$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>

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 09:26:06 +0200
Organization: A noiseless patient Spider
Lines: 25
Message-ID: <11b9pei$28p9l$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>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 21 Oct 2026 07:26:10 +0000 (UTC)
Injection-Info: dont-email.me;
	logging-data="2385205"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX1+Nu/9zRk5fVyTaFZK1oRAQ7w87a2mw78I="; posting-host="971f7ca8bb5a983d6f33f5136e398b14"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:kGxBk+ZF4JXLxQyEi78sj2wuQa0= sha256:2zHX9PNcnhrRMZKcg+SiRGV/ssH8neZ2Yh44FoENkks=
	sha1:InADLjfwbb19e1VH4Vw7HaLl8gU= sha256:DajdnbOxgW/xNcQMxpYRCL3s0o2wf17zTjC2W7OaLhs=
In-Reply-To: <6ad8043a$1@news.ausics.net>
Content-Language: en-US