ceil source npm

_.ceil(number, [precision=0])

Calculates number rounded up to precision.

Arguments

  1. number (number)

    The number to round up.

  2. [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