floor.js 272 B

123456789101112
  1. var helperCreateMathNumber = require('./helperCreateMathNumber')
  2. /**
  3. * 将数值向下舍入
  4. *
  5. * @param {string|number} num 数值
  6. * @param {number} digits 小数保留位数
  7. * @return {number}
  8. */
  9. var floor = helperCreateMathNumber('floor')
  10. module.exports = floor