1
- # More Math Functions: Draft 2.1
1
+ # More Math Functions: Draft 2.2
2
2
3
3
* [ (Issue)] ( https://github.com/sass/sass/issues/851 ) *
4
4
@@ -165,15 +165,15 @@ clamp($min, $number, $max)
165
165
### ` hypot() `
166
166
167
167
```
168
- hypot($arguments ...)
168
+ hypot($numbers ...)
169
169
```
170
170
171
- * If all arguments are not compatible with each other, throw an error.
172
- * If some arguments have units and some do not, throw an error.
173
- * If all arguments are unitless, the return value is unitless.
174
- * Otherwise, the return value takes the unit of the leftmost argument .
175
- * If any argument equals ` Infinity ` or ` -Infinity ` , return ` Infinity ` .
176
- * Return the square root of the sum of the squares of each argument .
171
+ * If all numbers are not compatible with each other, throw an error.
172
+ * If some numbers have units and some do not, throw an error.
173
+ * If all numbers are unitless, the return value is unitless.
174
+ * Otherwise, the return value takes the unit of the leftmost number .
175
+ * If any number equals ` Infinity ` or ` -Infinity ` , return ` Infinity ` .
176
+ * Return the square root of the sum of the squares of each number .
177
177
178
178
### Exponentiation
179
179
@@ -242,6 +242,7 @@ sqrt($number)
242
242
* If ` $number ` has units, throw an error.
243
243
* If ` $number < 0 ` , return ` NaN ` as a unitless number.
244
244
* If ` $number == -0 ` , return ` -0 ` as a unitless number.
245
+ * If ` $number == 0 ` , return ` 0 ` as a unitless number.
245
246
* If ` $number == Infinity ` , return ` Infinity ` as a unitless number.
246
247
* Return the square root of ` $number ` , as a unitless number.
247
248
@@ -272,6 +273,7 @@ sin($number)
272
273
* If ` $number == Infinity ` or ` $number == -Infinity ` , return ` NaN ` as a unitless
273
274
number.
274
275
* If ` $number == -0 ` , return ` -0 ` as a unitless number.
276
+ * If ` $number == 0 ` , return ` 0 ` as a unitless number.
275
277
* Return the [ sine] [ ] of ` $number ` , as a unitless number.
276
278
277
279
[ sine ] : https://en.wikipedia.org/wiki/Trigonometric_functions#Right-angled_triangle_definitions
@@ -287,6 +289,7 @@ tan($number)
287
289
* If ` $number == Infinity ` or ` $number == -Infinity ` , return ` NaN ` as a unitless
288
290
number.
289
291
* If ` $number == -0 ` , return ` -0 ` as a unitless number.
292
+ * If ` $number == 0 ` , return ` 0 ` as a unitless number.
290
293
* If ` $number ` is equivalent to ` 90deg +/- 360deg * n ` , where ` n ` is any
291
294
integer, return ` Infinity ` as a unitless number.
292
295
* If ` $number ` is equivalent to ` -90deg +/- 360deg * n ` , where ` n ` is any
@@ -317,6 +320,7 @@ asin($number)
317
320
* If ` $number ` has units, throw an error.
318
321
* If ` $number < -1 ` or ` $number > 1 ` , return ` NaN ` as a number in ` deg ` .
319
322
* If ` $number == -0 ` , return ` -0deg ` .
323
+ * If ` $number == 0 ` , return ` 0deg ` .
320
324
* Return the [ arcsine] [ ] of ` $number ` , as a number in ` deg ` .
321
325
322
326
[ arcsine ] : https://en.wikipedia.org/wiki/Inverse_trigonometric_functions#Basic_properties
@@ -329,6 +333,7 @@ atan($number)
329
333
330
334
* If ` $number ` has units, throw an error.
331
335
* If ` $number == -0 ` , return ` -0deg ` .
336
+ * If ` $number == 0 ` , return ` 0deg ` .
332
337
* If ` $number == -Infinity ` , return ` -90deg ` .
333
338
* If ` $number == Infinity ` , return ` 90deg ` .
334
339
* Return the [ arctangent] [ ] of ` $number ` , as a number in ` deg ` .
0 commit comments