Re: [csswg-drafts] [css-values] round(A,B) with B negative (#4718)

Addition does produce `-0`, but only in `-0 + -0`; it does indeed act as the identity element there.

Subtracting is the real weird one, tho: only `-0 - +0` produces -0; every other subtraction of zeros produces +0. Adding +0 to both sides to rearrange the equation, this implies that `-0 = -0 + +0`, but that's not true; that addition produces +0.

I think you're right that commutitivity isn't actually the law being broken there; I guess it's additive inverses don't work correctly around zeros (which is why flipping the sign like that isn't guaranteed to work right.

-- 
GitHub Notification of comment by tabatkins
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/4718#issuecomment-581639196 using your GitHub account

Received on Monday, 3 February 2020 21:59:39 UTC