Mega Code Archive
Categories
/
JavaScript Tutorial
/
Math
Math ceil()
Syntax math.ceil(num) The ceil() method calculates the smallest integer that is greater than or equal to the number passed in as a parameter.
Example of the ceil() method
This example calculates ceiling of the entered number.
Enter First Number:
The Ceil output is: