Run ❯
×
Change Orientation
Save Code
Change Theme, Dark/Light
Go to Spaces
JavaScript Numbers
The toFixed() Method
toFixed() converts a number to a string, rounded to a specified number of decimals: