I think they should intuitively be equal. But I don't know how to show it. And I can't find a counter example to it either to disprove it.
2026-03-27 03:49:46.1774583386
Floating Point: are round(x-y) and -round(y-x) equal?
396 Views Asked by Bumbble Comm https://math.techqa.club/user/bumbble-comm/detail At
2
It depends on how you round half-odd-integers. If you use the "round half up" rule, $\text{round}(1/2) = 1$ but $\text{round}(-1/2) = 0$.