|
|
|
|
|
by klodolph
2877 days 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. |
|