ngx-currency
ngx-currency copied to clipboard
Select All (e.g. Ctrl+A) then a Number is 0.X instead of 0.0X (sometimes)
- https://nbfontana.github.io/ngx-currency/
- 0.00 is the default
- Select-All inside the input
- Key-in a Number, like 5
- The value is now 0.5 (whereas 0.05 is expected)
- Key-in more Numbers, like 4321
- The value is now 543.21
- Select-All inside the Input
- Key-in a Number, like 5
- The value is now 0.05 (as expected!)
So, it seems that if the value is currently 0, there is some unexpected behavior when the entire value is modified to something else. It's especially interesting if you try the Number 0, which results in a 0.0 and not 0.00.

Same problem here. I'm working with precision 8
Well there's not a lot of chatter about it, but I will probably start working on this soon if I have more time.
Hi,
Thank you for all the work you put into the development of the project. I observe something similar to the reported issue.
Steps to reproduce:
- Go to the demo app - https://nbfontana.github.io/ngx-currency/
- Enter a value, for example, 12345
- Remove the value
- Paste a value, for example, 12.345.678.901,23
- Component value is now 12345678.9 (12.345.678.901,23 is expected)
