Initial commit
[yaffs-website] / node_modules / grunt-contrib-watch / node_modules / lodash / math / ceil.js
1 var createRound = require('../internal/createRound');
2
3 /**
4  * Calculates `n` rounded up to `precision`.
5  *
6  * @static
7  * @memberOf _
8  * @category Math
9  * @param {number} n 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
25 module.exports = ceil;