Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.forth > #135071

Re: IEEE floating point comparisons

Date Tue, 5 May 2026 11:32:43 +1000
MIME-Version 1.0
User-Agent Mozilla Thunderbird
Subject Re: IEEE floating point comparisons
Newsgroups comp.lang.forth
References <10t9259$3c72d$1@dont-email.me> <20260504094359.00003976@tin.it> <10ta3eo$3l84s$1@dont-email.me> <n5sboiFm58sU1@mid.individual.net>
Content-Language en-GB
From dxf <dxforth@gmail.com>
In-Reply-To <n5sboiFm58sU1@mid.individual.net>
Content-Type text/plain; charset=UTF-8
Content-Transfer-Encoding 7bit
NNTP-Posting-Host news.ausics.net
Message-ID <69f948bb$1@news.ausics.net> (permalink)
Organization Ausics - https://newsgroups.ausics.net
Lines 20
X-Complaints abuse@ausics.net
Path csiph.com!news.bbs.nz!news.ausics.net!not-for-mail
Xref csiph.com comp.lang.forth:135071

Show key headers only | View raw


On 5/05/2026 5:53 am, minforth wrote:
> Am 04.05.2026 um 14:29 schrieb Krishna Myneni:
>> ...
>> I included ieee-754.4th for Forth systems which did not have +/-INF and +/-NAN defined. It also provides the extremely useful words FINFINITE? and FNAN? to check for infinities and NANs resulting from calculations, as well as FSUBNORMAL? when the results are represented with less precision than standard double precision. These words are all part of David Williams' IEEE proposal.
>>
>> The rationale for the signed NAN is unclear to me, but I think David had a good reason to include it in his IEEE proposal. It may be useful in some numerical computation cases. I will look into this further.
>>
> The sign is merely an artefact of the preceding calculation and has no
> inherent significance. Even in applications that use NaN-boxing, the
> possible range of values does not include the bit position of the sign.

When creating constants that represent NAN the sign bit will necessarily
be there.  That's enough to include it in the identifier IMO.  Similarly
when displaying fp datum that happen to be NAN.  I would rather see more
information than less.  When I'm told something occurred "last year" it
only begs the question "exactly when?".


 

Back to comp.lang.forth | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

IEEE floating point comparisons Krishna Myneni <krishna.myneni@ccreweb.org> - 2026-05-03 22:00 -0500
  Re: IEEE floating point comparisons Krishna Myneni <krishna.myneni@ccreweb.org> - 2026-05-03 22:18 -0500
  Re: IEEE floating point comparisons peter <peter.noreply@tin.it> - 2026-05-04 09:43 +0200
    Re: IEEE floating point comparisons Krishna Myneni <krishna.myneni@ccreweb.org> - 2026-05-04 07:29 -0500
      Re: IEEE floating point comparisons minforth <minforth@gmx.net> - 2026-05-04 21:53 +0200
        Re: IEEE floating point comparisons Krishna Myneni <krishna.myneni@ccreweb.org> - 2026-05-04 17:20 -0500
        Re: IEEE floating point comparisons dxf <dxforth@gmail.com> - 2026-05-05 11:32 +1000
  Re: IEEE floating point comparisons Krishna Myneni <krishna.myneni@ccreweb.org> - 2026-05-06 08:23 -0500

csiph-web