W3C home > Mailing lists > Public > public-css-archive@w3.org > July 2019

Re: [csswg-drafts] Does tan(90deg) return +∞, −∞ or NaN? (#4101)

From: Amelia Bellamy-Royds via GitHub <sysbot+gh@w3.org>
Date: Wed, 10 Jul 2019 23:00:47 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-510262103-1562799646-sysbot+gh@w3.org>
> So I guess this should round-trip and tan(90deg) should be +∞ and tan(-90deg) be -∞?

I would argue strongly for a solution that supports round-tripping, so that `atan(tan(90deg))` returns 90deg.  If we can't do that, might as well give up on propagating the infinities through the nested functions at all.

And being approximately consistent with JS implementations is good, too. Even if the JS results are a side effect of numerical precision limits.

GitHub Notification of comment by AmeliaBR
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/4101#issuecomment-510262103 using your GitHub account
Received on Wednesday, 10 July 2019 23:00:49 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:41:50 UTC