Always false float comparisons

Walter Bright via Digitalmars-d digitalmars-d at puremagic.com
Mon May 9 04:26:55 PDT 2016


On 5/9/2016 3:16 AM, Jens Mueller via Digitalmars-d wrote:
> passes I find the root cause lies in the implicit type conversion from
> float to double.

That isn't going to change.

> Warning for those comparisons should be fine. Shouldn't mix them anyway.

Too onerous.

> I wonder what's the difference between 1.30f and cast(float)1.30.

There isn't one.



More information about the Digitalmars-d mailing list