Always false float comparisons
Walter Bright via Digitalmars-d
digitalmars-d at puremagic.com
Mon May 9 05:28:04 PDT 2016
On 5/9/2016 4:38 AM, Nordlöw wrote:
> Would that include comparison of variables only aswell?
>
> float f = 1.3;
> double d = 1.3;
> assert(f == d); // compiler warning
No.
More information about the Digitalmars-d
mailing list