🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.forth
Article #54

Re: F.N floating point format word

#54
From: dxf
Date: Sat, 10 Oct 2026 02:14
14 lines
1929 bytes
On 10/10/2026 8:54 am, Krishna Myneni wrote:
> On 10/9/26 4:54 AM, dxf wrote:
> ...
>> TL;DR AFAICS if one wants accurate rounding to 17 digits (or 700 digits)
>> from F.N then that's the value of u that needs to be passed when asking
>> for the exponent.  
> 
> Because of the round trip requirement for IEEE binary64 you should not need to ask for more than 17 digits to the initial call to REPRESENT in order to get the exponent. In my F.N code from Peter, I have the value u set at 17. Of course when you actually get down to using REPRESENT to obtain the number of digits you want, u must be set accordingly.

All I'm saying is the math, the numbers produced and subsequently displayed,
have to correspond.  A REPRESENT capable of resolving 700 digits is overkill
for a system whose math is only good to 17 digits.

Technical Details
Message-ID: <6ac99f9e$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: <119oin2$26n99$1@dont-email.me> <11a01mr$sqrm$1@dont-email.me> <20261005150222.00006cf5@tin.it> <11a16nc$1camn$1@dont-email.me> <20261006080347.00002cdf@tin.it> <11a4tj5$2ku7v$1@dont-email.me> <20261007223526.000065ab@tin.it> <6ac7013a$1@news.ausics.net> <20261008121302.00007412@tin.it> <6ac8b9f0$1@news.ausics.net> <11abnq4$16oh0$1@dont-email.me>

Show Full Headers
Complete Article Headers
Date: Sat, 10 Oct 2026 13:14:55 +1100
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
Subject: Re: F.N floating point format word
Newsgroups: comp.lang.forth
References: <119oin2$26n99$1@dont-email.me> <11a01mr$sqrm$1@dont-email.me>
 <20261005150222.00006cf5@tin.it> <11a16nc$1camn$1@dont-email.me>
 <20261006080347.00002cdf@tin.it> <11a4tj5$2ku7v$1@dont-email.me>
 <20261007223526.000065ab@tin.it> <6ac7013a$1@news.ausics.net>
 <20261008121302.00007412@tin.it> <6ac8b9f0$1@news.ausics.net>
 <11abnq4$16oh0$1@dont-email.me>
Content-Language: en-GB
From: dxf <dxforth@gmail.com>
In-Reply-To: <11abnq4$16oh0$1@dont-email.me>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
NNTP-Posting-Host: news.ausics.net
Message-ID: <6ac99f9e$1@news.ausics.net>
Organization: Ausics - https://newsgroups.ausics.net
Lines: 14
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