A prototype for Number.toFixed in JavaScript
Note if toFixed is not defined if (!num.toFixed) { Number.prototype.toFixed = function(precision) { var power = Math.pow(10, precision || 0); return… Read More »A prototype for Number.toFixed in JavaScript