3 ms·
> …any pieces of code that assume that (x / y) * y equals x… What? If you’re using integers or floating-point numbers, that has never been true in general. Con
by klodolph 8y ago
> …any pieces of code that assume that (x / y) * y equals x…
What? If you’re using integers or floating-point numbers, that has never been true in general. Consider x=1, y=49 in the realm of IEEE doubles. Addition isn’t even associative, consider 1e-50 + 1 - 1.