floor.js 217 B

1234567891011
  1. 'use strict';
  2. // var modulo = require('./modulo');
  3. var $floor = Math.floor;
  4. // http://262.ecma-international.org/5.1/#sec-5.2
  5. module.exports = function floor(x) {
  6. // return x - modulo(x, 1);
  7. return $floor(x);
  8. };