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