🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.forth
Article #19

Re: F.N floating point format word

#19
From: Krishna Myneni
Date: Wed, 07 Oct 2026 13:21
23 lines
2241 bytes
On 10/7/26 3:10 AM, Anton Ertl wrote:
> Krishna Myneni <krishna.myneni@ccreweb.org> writes:
>> Since binary -> decimal conversion with 17 significant digits is
>> guaranteed to cycle in a round trip for binary64
> 
> It will give you a binary->decimal->binary round trip, but the decimal
> number is not always the shortest one that gives this FP number.  E.g.:
> 
> 0.9e 17 e.p \ .90000000000000002e
> 
> while obviously "0.9e" already gives you this FP number.  E. tries
> 15-17 digits, and outputs the first one where the round trip works.
> 

Ok, but that's not what's needed for implementing F.N where the number 
of decimal places, to which the output is rounded, is specified. IOW it 
will not be equivalent to the Fortran F format.

--
KM


Technical Details
Message-ID: <11a5h09$2t3sb$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: <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> <2026Oct7.101011@mips.complang.tuwien.ac.at>

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: F.N floating point format word
Date: Wed, 7 Oct 2026 08:21:13 -0500
Organization: A noiseless patient Spider
Lines: 23
Message-ID: <11a5h09$2t3sb$1@dont-email.me>
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>
 <2026Oct7.101011@mips.complang.tuwien.ac.at>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 07 Oct 2026 13:21:14 +0000 (UTC)
Injection-Info: dont-email.me;
	logging-data="3051403"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX18ir4JfqRsSjgSpN7iTKN7b"; posting-host="d05ed1c28a75393cf2b11653aaa7e6f7"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:cPsxnnn12gmI6Vt7hz/wYJOyBe8= sha256:fsBe5E4n7ihvRvJRVO3Xap27m1RyAy++u2ErY2K1LiI=
	sha1:UY2OCw/ip+SpivpJ5Bee6Oma8Ak= sha256:5TZOqDIgA9X5O7UDX3XqdwxF0nzyfMInLPOTmfUWChg=
In-Reply-To: <2026Oct7.101011@mips.complang.tuwien.ac.at>
Content-Language: en-US