ceil

Math
since 3.10.0

Arguments

  • number The number to round up.
  • number The precision to round up to.

Returns

number the rounded up number.

Computes number rounded up to precision.

Example of Lodash _.ceil

_.ceil(4.006);
// => 5

_.ceil(6.004, 2);
// => 6.01

_.ceil(6040, -2);
// => 6100