Number.toFixed

Number toFixed (Number decimals)

Parameters

decimals The number of decimals.

Description

Converts the Number object to a string with fixed decimals.