mirror of
https://github.com/sass/sass.git
synced 2024-09-21 10:37:22 +00:00
056b700c86
* Rename `hypot()`'s args to `$numbers` for consistency. * All functions with cases for `-0` now have cases for `0`.
1.2 KiB
1.2 KiB
Draft 2.2
-
For consistency, all functions that have cases for
-0
also have cases for0
. This includessqrt()
,sin()
,tan()
,asin()
, andatan()
. -
hypot()
's arguments are named$numbers
for consistency.
Draft 2.1
- atan2()'s arguments must all have compatible units, or all be unitless.
Draft 2
-
Variables
$e
and$pi
have 1 more digit of precision after the decimal.- Variables from built-in modules cannot be modified.
-
Infinity
and-Infinity
:- If any argument to
hypot()
equals-Infinity
, it returnsInfinity
. - The
$exponent == Infinity
case inpow()
also holds for$exponent == -Infinity
. - The
$number == Infinity
cases incos()
,sin()
, andtan()
also hold for$number == -Infinity
.
- If any argument to
-
Input units:
clamp()
's arguments must all have compatible units, or all be unitless.log()
does not error unless the input has units, and instead delegates edge cases to division.
-
Output units:
- For
acos()
,asin()
, andatan()
, andatan2()
, all of their outputs are numbers indeg
.
- For
Draft 1.1
- Added Background and Summary sections.
Draft 1
- Initial draft.