News for hackers. Stuff that matters.
Re:GNU GCC does not round floating-point divisions to the ne... by quietbritishjim on Sunday June 28, 2020 @11:21AM (#23669323)
One very language-lawyer way to look at it is that, even if the answer it gives is more mathematically accurate, it's still less correct in that it's not the value you literally asked for.

Imagine the analogue for integers. You might use code like this to round down to a multiple of 2:

    int i = 7;
    int j = (i / 2) * 2;
If a compiler optimized that to j = i then that's more mathematically accurate but less correct.

There are no comments on this comment yet.