Path: csiph.com!weretis.net!feeder8.news.weretis.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Tim Rentsch
Newsgroups: comp.lang.c
Subject: Re: Radians Or Degrees?
Date: Fri, 23 Feb 2024 18:49:17 -0800
Organization: A noiseless patient Spider
Lines: 41
Message-ID: <86edd2wp8y.fsf@linuxsc.com>
References: <20240222015920.00000260@yahoo.com> <20240222233838.0000572f@yahoo.com> <3b2e86cdb0ee8785b4405ab10871c5ca@www.novabbs.org> <20240223143250.000012a8@yahoo.com> <59454a79216ece74ac3fee0e00473357@www.novabbs.org> <878r3abwkv.fsf@bsb.me.uk> <8734tibr1t.fsf@bsb.me.uk>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Injection-Info: dont-email.me; posting-host="1cdea6df135853ae187447ca49a96387"; logging-data="928381"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18rfvvsiOH3ZeqPp9U0AOKr8zQgnSqEPiM="
User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.4 (gnu/linux)
Cancel-Lock: sha1:8cjKETy+04kfo/ISJUv6z36zOUw= sha1:bJSHTlEXRW1TzMY2o8Cr8jC1pp0=
Xref: csiph.com comp.lang.c:382961
Ben Bacarisse writes:
> Lawrence D'Oliveiro writes:
>
>> On Fri, 23 Feb 2024 23:16:32 +0000, Ben Bacarisse wrote:
>>
>>> Lawrence D'Oliveiro writes:
>>>
>>>> On Fri, 23 Feb 2024 20:38:59 -0000 (UTC), Steven G. Kargl wrote:
>>>>
>>>>> Note 2: subnormal values ...
>>>>
>>>> Why did they bring in the term "subnormal", anyway? What was wrong with
>>>> "denormalized"?
>>>
>>> Greater clarity maybe? After all, the two terms do mean different
>>> things. In IEEE FP only subnormals can exist, but it surely helps to be
>>> able to talk about the difference.
>>
>> I thought they were the same thing: extra numbers inserted in the gap
>> between the normalized number closest to zero on each side, to allow for
>> gradual underflow.
>
> Those are subnormal. They are smaller (in magnitude) than the smallest
> normal. Denormals are simply representations with leading zeros. IEEE
> FP's implicit leading 1 means these (denormals that are not subnormal)
> can't exist in that representation.
There is some terminology confusion here. Depending on what
source is consulted, the term "denormal" has different meanings.
On Wikipedia, for example, "denormal numbers" redirects to
"subnormal number". Apparently the IEEE floating point standard
uses the term differently. Other sources are not consistent.
Note that the ISO C standard uses and defines the terms "subnormal
floating-point numbers" and "unnormalized floating-point numbers",
as disjoint sets, distinct from normalized floating-point numbers
(which the ISO C standard also defines). I expect it would help
the conversation to use these three terms (normalized, subnormal,
and unnormalized) and no others, since "denormal" or "denormalized"
seems to mean different things depending on which source is used.