Skip to content

[css-values] Should round(strategy, A, 0) be NaN or A? #4762

Closed
@Loirooriol

Description

@Loirooriol

Currently https://drafts.csswg.org/css-values-4/#round-infinities says

In round(A, B), if B is 0, the result is NaN.

But according to @tabatkins "my aesthetic sense is telling me I'm not allowed to say it's NaN when there are clear limit values."

In this case the limit is clear: lim_{x→0} round(strategy, A, x) = A.
So maybe round(strategy, A, 0) should be A?

On the other hand, being A would seem to imply that A is a multiple of 0, which technically it's false.
But A / ∞ = 0, so in a sense we do have A ≈ 0 * ∞, dunno.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions