Math JavaScript Tutorial

Syntax

math.round(num)
The round() method rounds a number to its nearest integer value.
If the fractional portion of the number is .5 or greater, the result is rounded to the next highest integer.
If the fractional portion of number is less than .5, the result is rounded to the next lowest integer.


    
    
    
    
    
    Enter Number:
    
    
    

    The rounded value is: