title: Math Extensions stage: 1 location: https://github.com/rwaldron/proposal-math-extensions copyright: false contributors: Rick Waldron
Additions
| Intrinsic Name | Global Name | ECMAScript Language Association |
|---|---|---|
| %Math_max% | `Math.max` |
The `Math.max` function ( |
| %Math_min% | `Math.min` |
The `Math.min` function ( |
When the `clamp` function is called, the following steps are taken:
When the `scale` function is called, the following steps are taken:
When the `radians` function is called, the following steps are taken:
When the `degrees` function is called, the following steps are taken:
The Number value of `Math.RAD_PER_DEG` is approximately 57.29577951308232.
| 180 | = 57.29577951308232 |
| π |
This property has the attributes { [[Writable]]: *false*, [[Enumerable]]: *false*, [[Configurable]]: *false* }.
The Number value of `Math.DEG_PER_RAD` is approximately 0.0174532925199432.
| π | = 0.0174532925199432 |
| 180 |
This property has the attributes { [[Writable]]: *false*, [[Enumerable]]: *false*, [[Configurable]]: *false* }.