Always false float comparisons

Manu via Digitalmars-d digitalmars-d at puremagic.com
Sun May 15 21:05:27 PDT 2016


On 16 May 2016 at 13:03, Walter Bright via Digitalmars-d
<digitalmars-d at puremagic.com> wrote:
> On 5/15/2016 7:01 PM, Manu via Digitalmars-d wrote:
>>
>> Are you saying 'float' in CTFE is not 'float'? I protest this about as
>> strongly as I can muster...
>
>
> I imagine you'll be devastated when you discover that the C++ Standard does
> not require 32 bit floats to have 32 bit precision either, and never did.
>
> :-)

I've never read the C++ standard, but I have more experience with a
wide range of real-world compilers than most, and it is rarely very
violated. The times it is, we've known about it, and it has made us
all very, very angry.


More information about the Digitalmars-d mailing list