number.js 930 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. 'use strict'
  2. var random = require('./random')
  3. var max = require('./max')
  4. var min = require('./min')
  5. var commafy = require('./commafy')
  6. var round = require('./round')
  7. var ceil = require('./ceil')
  8. var floor = require('./floor')
  9. var toFixed = require('./toFixed')
  10. var toInteger = require('./toInteger')
  11. var toNumber = require('./toNumber')
  12. var toNumberString = require('./toNumberString')
  13. var add = require('./add')
  14. var subtract = require('./subtract')
  15. var multiply = require('./multiply')
  16. var divide = require('./divide')
  17. var sum = require('./sum')
  18. var mean = require('./mean')
  19. var numberExports = {
  20. random: random,
  21. min: min,
  22. max: max,
  23. commafy: commafy,
  24. round: round,
  25. ceil: ceil,
  26. floor: floor,
  27. toFixed: toFixed,
  28. toNumber: toNumber,
  29. toNumberString: toNumberString,
  30. toInteger: toInteger,
  31. add: add,
  32. subtract: subtract,
  33. multiply: multiply,
  34. divide: divide,
  35. sum,
  36. mean
  37. }
  38. module.exports = numberExports