Javascript Methods JavaScript Reference

Note:
Rounds the Number to the specified number of decimal places.
    
Syntax:
    
numberName.toFixed(param1)
Parameters:
    param1   Required; the number of decimal places.