The toFixed() method rounds a Number to the specified number of decimal places.
NumberObject.toFixed(num)
num is required. Specifies the number of decimal places, which is a value between 0 and 20, including 0 and 20. Some implementations may support a larger range of values. If this parameter is omitted, 0 will be used instead.