Math JavaScript Tutorial

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: