Convert number to money - Node.js Number

Node.js examples for Number:Format

Description

Convert number to money

Demo Code


Number.prototype.moneyString = function() {
  return "$" + this.toFixed(2);
}

Related Tutorials