JavaScript Number Methods

The toFixed() method rounds a number to a given number of digits.

For working with money, toFixed(2) is perfect.