Article View: comp.lang.forth
Article #67Re: FCONSTANT specification
From: Krishna Myneni
Date: Mon, 12 Oct 2026 14:14
Date: Mon, 12 Oct 2026 14:14
33 lines
2081 bytes
2081 bytes
On 10/12/26 8:38 AM, Krishna Myneni wrote: ... > from the IEEE 754 standard: > > Limits on correctly rounded conversion: > > binary16: Pmin = 5 digits > binary32: Pmin = 9 digits > binary64: Pmin = 17 digits > binary128: Pmin = 36 digits > > For all other binary formats bf, > > Pmin(bf) = 1 + ceiling(p*log_10(2)), where p is the number of > significant bits in bf. > > e.g. for double precision, p = 53 bit significand, the above formula > gives 17 decimal digits. > > For 64 bit significand (80-bit extended precision) , the formula gives > 21 digits. > ... In Forth: 2.0e0 FLOG FCONSTANT _FLOG2 [UNDEFINED] FCEIL [IF] : FCEIL ( F: r1 -- r2 ) FNEGATE FLOOR FNEGATE ; [THEN] : P_min ( u1 -- u2) S>F _FLOG2 F* FCEIL F>D DROP 1+ ;
Technical Details
Message-ID:
<11aipvm$3kbfc$2@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-mailReferences:
<11aide4$1ibse$1@dont-email.me> <11aijvt$3iobp$1@dont-email.me> <11ainru$3kbfc$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 09:14:14 -0500 Organization: A noiseless patient Spider Lines: 33 Message-ID: <11aipvm$3kbfc$2@dont-email.me> References: <11aide4$1ibse$1@dont-email.me> <11aijvt$3iobp$1@dont-email.me> <11ainru$3kbfc$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 14:14:16 +0000 (UTC) Injection-Info: dont-email.me; logging-data="3812844"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18DXUJnHaVZ5OwyCxRw5gVq"; posting-host="0049bcdfbab9457ae4461d9eec926e65" User-Agent: Mozilla Thunderbird Cancel-Lock: sha1:zquWO7l3isqe4ncw0sMHsPGidsg= sha256:1/3o0A7YqN5B7p0wuyQt2A/ZjVnD2fG71SwgHXAbIQw= sha1:xqSjaVVKdd6xa+Fe9wpst6phHLk= sha256:zTWHz1utKGLmUmxN8BfdzNzJMogCW8K33O6eSQEO8FI= In-Reply-To: <11ainru$3kbfc$1@dont-email.me> Content-Language: en-US