Re: [csswg-drafts] [css-values] round(strategy, A, ±∞) (#4725)

Yup, my brain was assuming nearest there. `round(up 1, ∞)` should definitely return ∞.

> Also, returning 0 for an infinite precision seems to imply that 0 is a multiple of infinity. But 0 * ∞ = NaN, not 0. This makes me a bit uneasy, though I guess it's fine if you consider limits.

Yes, you usually have to consider the limit behavior for infinities; `round(1, very-large-finite-number)` definitely rounds to zero, so infinity should act the same.

On the other hand...

> Say that round(strategy, A, ±∞) is always NaN.

This works for me too. I don't think this is an important case to care about.

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

Received on Monday, 3 February 2020 23:05:01 UTC