Math JavaScript Tutorial

Syntax math.floor(num)
DescriptionGet the largest integer number, which is equivalent to or less than the number passed as the parameter.


    
    
    
    
    
    This example calculates the floor of the number entered.
    


    Enter First Number:
    
    
    

    The floor is: