openexchangerates / accounting.js

A lightweight JavaScript library for number, money and currency formatting - fully localisable, zero dependencies.
http://openexchangerates.github.io/accounting.js
MIT License
4.96k stars 530 forks source link

missing default "$" on formatNumber() #38

Closed dimerman closed 12 years ago

dimerman commented 12 years ago

I include the latest js (not minified) and call accounting.formatNumber( 1234 ). I get "1,234" but I was expecting "$ 1,234". I also tried adding a { symbol: "$" } after the 1234 but I keep getting the same string.

wjcrowcroft commented 12 years ago

Use formatMoney() instead!