FCSAmerica / angular-fcsa-number

An Angular directive that validates numbers and adds commas as thousand separators.
Apache License 2.0
83 stars 58 forks source link

Decimal portion of an fcsa number is being formatted with commas #3

Closed jbulat closed 10 years ago

jbulat commented 10 years ago

On blur the decimal portion of an fcsa number is being formatted with commas. Ideally the formatter will only add comma separators to the integer portion of the number.

Current behavior: 1123.45678 is formatted to 1,123.45,678

Correct behavior: 1123.45678 should be formatted to 1,123.45678

jbulat commented 10 years ago

JavaScript solution is here http://blog.stevenlevithan.com/archives/commafy-numbers

paulyoder commented 10 years ago

Thanks for the solution @jbulat I'll work on integrating that fix soon.

paulyoder commented 10 years ago

This is now fixed in version 1.3.0