Always false float comparisons
Matthias Bentrup via Digitalmars-d
digitalmars-d at puremagic.com
Wed May 18 08:30:42 PDT 2016
On Wednesday, 18 May 2016 at 14:29:42 UTC, Ola Fosheim Grøstad
wrote:
> On Wednesday, 18 May 2016 at 12:27:38 UTC, Ola Fosheim Grøstad
> wrote:
>> And yes, half-precision is only 10 bits.
>
> Actually, it turns out that the mantissa is 11 bits. So it
> clearly plays louder than other floats. ;-)
The mantissa is 10 bits, but it has 11 bit precision, just as the
float type has a 23 bit mantissa and 24 bit precision. AFAIK the
only float format that stores the always-one-bit of the mantissa
is the x87 80 bit format.
More information about the Digitalmars-d
mailing list