math-round-ties-to-even.js 188 B

1234567
  1. 'use strict';
  2. var EPSILON = 2.220446049250313e-16; // Number.EPSILON
  3. var INVERSE_EPSILON = 1 / EPSILON;
  4. module.exports = function (n) {
  5. return n + INVERSE_EPSILON - INVERSE_EPSILON;
  6. };