Closed ekubyshin closed 12 years ago
error is in this regExp new RegExp("[^0-9-" + decimal + "]", ["g"])
That's probably because you're specifying that the decimal separator to look for is a ","
Try: unformat('1 000.22', '.')
need to check that the value contains only one delimiter. it's bug
how about this? unformat('11111,22') result is: 1111122
This is expected behaviour
Try:
accounting.unformat("$ 1,000.99") // 1000.99
accounting.unformat("$ 1.000,99", ",") // 1000.99
try to unformat number '1 000.22':
unformat('1 000.22', ',')
and result is: 100012