Computes number rounded up to precision. (Round up: the smallest integer greater than or equal to a given number.)
number
precision
The number to round up.
The precision to round up to.
Returns the rounded up number.
5.5.0
ceil(4.006)// => 5ceil(6.004, 2)// => 6.01ceil(6040, -2)// => 6100 Copy
ceil(4.006)// => 5ceil(6.004, 2)// => 6.01ceil(6040, -2)// => 6100
Computes
number
rounded up toprecision
. (Round up: the smallest integer greater than or equal to a given number.)