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

The current definition of round() is correct. The quote is wrong; I tried to simplify the fuller expression of `mod(A, B) = A - (B * floor(A/B))` into `A - round(down, A, B)`, but as you note that's incorrect. I'll fix the note.

> With (1), I guess the quote should say (A - round(down, A, B)) * sign(B)

No, changing the sign of a mod/rem result is never correct. Use a value other than 2/-2 in your tests and you'll see that immediately. ^_^

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

Received on Friday, 31 January 2020 03:05:14 UTC