25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
507 B

3 년 전
  1. var createRound = require('./_createRound');
  2. /**
  3. * Computes `number` rounded up to `precision`.
  4. *
  5. * @static
  6. * @memberOf _
  7. * @since 3.10.0
  8. * @category Math
  9. * @param {number} number The number to round up.
  10. * @param {number} [precision=0] The precision to round up to.
  11. * @returns {number} Returns the rounded up number.
  12. * @example
  13. *
  14. * _.ceil(4.006);
  15. * // => 5
  16. *
  17. * _.ceil(6.004, 2);
  18. * // => 6.01
  19. *
  20. * _.ceil(6040, -2);
  21. * // => 6100
  22. */
  23. var ceil = createRound('ceil');
  24. module.exports = ceil;