-
Notifications
You must be signed in to change notification settings - Fork 689
Commit
- Loading branch information
There are no files selected for viewing
3 comments
on commit 90ff717
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is the cons after the rounding strategy really necessary?
Can we change to-zero
to truncate
to match JS slightly better? (If to infinity was added, it would then need to be called expand
or some such.)
I think there is merit in adding nearest-even
(as suggested by IEEE 754) and perhaps also nearest-odd
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is the cons after the rounding strategy really necessary?
What do you mean by "cons"? If you mean comma, while not strictly necessary, as a rule I've been avoiding concatenating <calc-sum>
with anything else, since it's a relatively complex grammar.
Can we change to-zero to truncate to match JS slightly better?
I considered that, but it's not actually truncating anything. I think it would cause more confusion than it would avoid.
I think there is merit in adding nearest-even (as suggested by IEEE 754) and perhaps also nearest-odd.
The point of nearest-even is to help reduce bias in estimates. I don't think there's currently a call for that in CSS.
(That said, if we do want to dictate the behavior of ties, the plan is to let you combine nearest
with another keyword, so the default behavior is nearest up
, and we'd indeed add at least nearest even
as a possibility at that point.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I meant comma indeed.
Even if B is infinite? If we consider
A_n = n, B_n = 3*n
, thenlim_{n -> ∞} round(A_n, B_n) = 0
, not ∞.So I would have expected the result to be NaN if both are infinite.