1 2 3
As you may have guessed the method is
toFixed. It accepts one parameter which is the number of decimal places
to take into account.
Note: The number gets rounded as you can notice by the example above.