Opal-Estate-Pro/node_modules/core-js/modules/es7.math.fscale.js

11 lines
332 B
JavaScript
Raw Normal View History

2019-09-13 06:27:52 +02:00
// https://rwaldron.github.io/proposal-math-extensions/
var $export = require('./_export');
var scale = require('./_math-scale');
var fround = require('./_math-fround');
$export($export.S, 'Math', {
fscale: function fscale(x, inLow, inHigh, outLow, outHigh) {
return fround(scale(x, inLow, inHigh, outLow, outHigh));
}
});