Always false float comparisons

Era Scarecrow via Digitalmars-d digitalmars-d at puremagic.com
Sun May 15 13:34:19 PDT 2016


On Sunday, 15 May 2016 at 08:33:44 UTC, Ola Fosheim Grøstad wrote:
> Because D does not cancel out "cast(real)cast(float)1.30)" for 
> "f", but does cancel it out for cf.

  Hmmm...

  I noticed my code example fails to specify float for the 
immutable, fixing that only the first line with f == 1.30 fail 
while all others succeed (for some reason?), which is good news. 
Does that mean the error that I had noted a few years ago 
actually was fixed?


More information about the Digitalmars-d mailing list