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

Unformat returns wrong value for Danish Krone currency #199

Closed kevgathuku closed 8 months ago

kevgathuku commented 6 years ago
import accounting from 'accounting';

accounting.unformat('kr 250,162'); 
// Returns 0.250162
// Expected it to return:  250162
zdanowiczkonrad commented 5 years ago

I think this tool is not maintained anymore. If you're still looking for a solution, I built a similar library that has this issue solved: number-currency-format, look for unformat function.