- From: Oriol Brufau via GitHub <sysbot+gh@w3.org>
- Date: Thu, 06 Feb 2020 14:41:45 +0000
- To: public-css-archive@w3.org
Using limits, shouldn't we have ``` mod(finite negative, +∞) = +∞ mod(finite positive, −∞) = −∞ ``` instead of NaN? However, I'd expect `mod(A1, B) = mod(A2, B)` to imply that `A1 - A2` is an integer multiple of `B`. This doesn't hold with the above. Maybe that's what @jrus meant with "`mod(x, ∞)` is nonsensical in general"? But I guess not having that property can be attributed to precision problems. Like ``` mod(-1, 1e17) = -1 + 1e17 = 1e17 = -2 + 1e17 = mod(-2, 1e17) ``` even though `(-1) - (-2) = 1` is not an integer multiple of 1e17. So not exclusive for ∞. -- GitHub Notification of comment by Loirooriol Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/4723#issuecomment-582936570 using your GitHub account
Received on Thursday, 6 February 2020 14:41:46 UTC