Rounds a number up to the nearest integer.
The number to round up.
The smallest integer greater than or equal to the given number.
ceil(3.1); // returns 4ceil(-2.8); // returns -2 Copy
ceil(3.1); // returns 4ceil(-2.8); // returns -2
Rounds a number up to the nearest integer.