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