Always false float comparisons
Ola Fosheim Grøstad via Digitalmars-d
digitalmars-d at puremagic.com
Fri May 13 13:57:10 PDT 2016
On Friday, 13 May 2016 at 18:16:29 UTC, Walter Bright wrote:
>> Please have the frontend behave such that it operates on the
>> precise
>> datatype expressed by the type... the backend probably does
>> this too,
>> and runtime certainly does; they all match.
>
> Except this never happens anyway.
It should in C++ with the right strict-settings, which makes the
compiler use reproducible floating point operations. AFAIK it
should work out even in modern JavaScript.
More information about the Digitalmars-d
mailing list