|
Last change
on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 11 days ago |
|
Fix frontend appearance
|
-
Property mode
set to
100644
|
|
File size:
416 bytes
|
| Line | |
|---|
| 1 | 'use strict';
|
|---|
| 2 | var $ = require('../internals/export');
|
|---|
| 3 |
|
|---|
| 4 | var scale = require('../internals/math-scale');
|
|---|
| 5 | var fround = require('../internals/math-fround');
|
|---|
| 6 |
|
|---|
| 7 | // `Math.fscale` method
|
|---|
| 8 | // https://rwaldron.github.io/proposal-math-extensions/
|
|---|
| 9 | $({ target: 'Math', stat: true, forced: true }, {
|
|---|
| 10 | fscale: function fscale(x, inLow, inHigh, outLow, outHigh) {
|
|---|
| 11 | return fround(scale(x, inLow, inHigh, outLow, outHigh));
|
|---|
| 12 | }
|
|---|
| 13 | });
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.