Mottie / javascript-number-formatter

Lightweight & Fast JavaScript Number Formatter
http://mottie.github.io/javascript-number-formatter/
MIT License
141 stars 37 forks source link

Incorrect formatting when using #,##0 format #26

Open sergiocapozzi77 opened 3 years ago

sergiocapozzi77 commented 3 years ago

Hi, I'ma having a problem using the formatter: #,##0

In C#: string.Format("{0:#,##0}", 0) ---> 0 string.Format("{0:#,##0}", 68) ---> 68

In the library: format('#,##0', 0) ---> ,000 format('#,##0', 68) ---> 68,000