_.ceil(number, [precision=0])
Computes number
rounded up to precision
.
Since
3.10.0
Arguments
-
number
(number): The number to round up. -
[precision=0]
(number): The precision to round up to.
Returns
(number): Returns the rounded up number.
Example
_.ceil(4.006); // => 5 _.ceil(6.004, 2); // => 6.01 _.ceil(6040, -2); // => 6100
Please login to continue.