🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.forth
Article #73

Re: FCONSTANT specification

#73
From: Krishna Myneni
Date: Mon, 12 Oct 2026 18:05
45 lines
3409 bytes
On 10/12/26 11:38 AM, marcel hendrix wrote:
> On 10/12/2026 6:08 PM, Krishna Myneni wrote:
>> On 10/12/26 9:56 AM, marcel hendrix wrote:
>>> On 10/12/2026 4:14 PM, Krishna Myneni wrote:
>>> [..]> 2.0e0 FLOG FCONSTANT _FLOG2
>>>> [UNDEFINED] FCEIL [IF]
>>>> : FCEIL ( F: r1 -- r2 ) FNEGATE FLOOR FNEGATE ;
>>>> [THEN]
> 
> [..]
> 
>> What binary precision (number of significand bits) are you using for 
>> your xdfloats?
> xdfloats are 128 bits ( 2 extended doubles [80 bits] ).
> ddfloats are 106 bits ( 2 doubles [53 bits] ).
> The '25' is based on an extended float (64 bit mantissa).
> 

Ok. It is a composite of two extended precision numbers. That makes it a 
little difficult to apply the P_min formula. But maybe we can go by the 
analogy with double double precision.

If a ddfloat was equivalent to a single binary significand of 106 bits, 
according to the P_min formula, the output to decimal with 33 digits 
would cycle back to the same binary pattern. Then, an xdfloat treated as 
equivalent to a single binary significand of 128 bits was output in 
decimal to P_min = 40 digits would cycle back to the same binary pattern.

In reality, the double double or double extended are probably not 
equivalent to a normalized binary encoding of the sum of the significand 
bits for two doubles/two extended for each case, so I think the number 
of digits given by P_min represent a maximum limit on the number of 
decimal digits which would cycle if they were output by the same binary 
pattern.

The problem could be at the front end (decimal string to binary 
conversion) or for the inverse case (binary to decimal string), or 
possibly both. For now, you could test with a single specified extended 
float binary value and output it to 21 decimal digits and see if it 
cycles back to the same binary value. To test the cycling, you have to 
start with the binary value. If that fails, it would indicate a problem.

--
KM
Technical Details
Message-ID: <11aj7gg$3r545$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: <11aide4$1ibse$1@dont-email.me> <11aijvt$3iobp$1@dont-email.me> <11ainru$3kbfc$1@dont-email.me> <11aipvm$3kbfc$2@dont-email.me> <11aisee$e9sc$1@dont-email.me> <11aj0ma$3oci3$1@dont-email.me> <11aj2eq$ed42$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: FCONSTANT specification
Date: Mon, 12 Oct 2026 13:05:04 -0500
Organization: A noiseless patient Spider
Lines: 45
Message-ID: <11aj7gg$3r545$1@dont-email.me>
References: <11aide4$1ibse$1@dont-email.me> <11aijvt$3iobp$1@dont-email.me>
 <11ainru$3kbfc$1@dont-email.me> <11aipvm$3kbfc$2@dont-email.me>
 <11aisee$e9sc$1@dont-email.me> <11aj0ma$3oci3$1@dont-email.me>
 <11aj2eq$ed42$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Mon, 12 Oct 2026 18:05:05 +0000 (UTC)
Injection-Info: dont-email.me;
	logging-data="4035717"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX1/NNHZtXZBYAnJQmnkOjM3d"; posting-host="0049bcdfbab9457ae4461d9eec926e65"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:MUHOfu7bqBTM/3pMPp9n2P+EDD0= sha256:N2YhudHEIvDGwJE/W82iRkRhaBZSM+tP21ldQz80g/Q=
	sha1:CH9F6uxf2NQeoqiPd6q1s3O/rtg= sha256:kbjHAgz3SyYm7AvmeT8GASPXPY86cfUXYnQJ4VJTy/k=
Content-Language: en-US
In-Reply-To: <11aj2eq$ed42$1@dont-email.me>