Always false float comparisons

Walter Bright via Digitalmars-d digitalmars-d at puremagic.com
Sun May 15 11:35:15 PDT 2016


On 5/15/2016 1:33 AM, Ola Fosheim Grøstad wrote:
> That is _very_ bad.

Oh, rubbish. Did you know that (x+y)+z is not equal to x+(y+z) in floating point 
math? FP math is simply not the math you learned in high school. You'll have 
nothing but grief with it if you insist it must be the same.


More information about the Digitalmars-d mailing list