Ceil Math functionWe can get the ceiling of a number by using match ceil() function. Or by using ceil math function we can get the smallest integer that is greater than or equal to given number. So by using this we can get the next higher integer of a given number. Here is the syntax.
Math.ceil(number)Let us try with some examples.
document.write (Math.ceil(11.257)); // output 12
Let us develop a script where users can enter any data and get the ceil value of it.