in reply to Re^4: Numeric Comparisons Randomly Giving the Wrong Result
in thread Numeric Comparisons Randomly Giving the Wrong Result

If you do fancy calculations, like repeatedly adding fractional parts of things, you need to give deep thought to all your calculations anyway, whether they are in floating point or integer numbers.

I don't see where that part of my statement collides with your example.

  • Comment on Re^5: Numeric Comparisons Randomly Giving the Wrong Result

Replies are listed 'Best First'.
Re^6: Numeric Comparisons Randomly Giving the Wrong Result
by mjscott2702 (Pilgrim) on Sep 30, 2010 at 14:56 UTC
    It doesn't, and I agree with you 100.00000%.

    I was just pointing out that simply enabling the integer pragma isn't a one-stop solution - in fact, it reinforces your point about always giving deep thought to your calculations anyway.