The toFixed() method formats a number using fixed-point notation.
var numObj = 12345.6789;
Exceptions RangeError If digits is too small or too large. Values between 0 and 100, inclusive, will not cause a RangeError. Implementations are allowed to support larger and smaller values as chosen. TypeError If this method is invoked on an object that is not a Number.