Node-Red configuration
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

math-fround.js 538B

12345678910111213
  1. 'use strict';
  2. var floatRound = require('../internals/math-float-round');
  3. var FLOAT32_EPSILON = 1.1920928955078125e-7; // 2 ** -23;
  4. var FLOAT32_MAX_VALUE = 3.4028234663852886e+38; // 2 ** 128 - 2 ** 104
  5. var FLOAT32_MIN_VALUE = 1.1754943508222875e-38; // 2 ** -126;
  6. // `Math.fround` method implementation
  7. // https://tc39.es/ecma262/#sec-math.fround
  8. // eslint-disable-next-line es/no-math-fround -- safe
  9. module.exports = Math.fround || function fround(x) {
  10. return floatRound(x, FLOAT32_EPSILON, FLOAT32_MAX_VALUE, FLOAT32_MIN_VALUE);
  11. };