thelebdev / ng2-currency-mask

A very simple currency mask directive that allows using a number attribute with the ngModel.
MIT License
0 stars 3 forks source link

Critical issue with decimal precision #20

Open guillep2k opened 5 years ago

guillep2k commented 5 years ago

Migrated from original project (https://github.com/cesarrew/ng2-currency-mask/issues/93) - LONG THREAD

Orignal request by @RenjithPr90, @msaqib09, @kamilklosowski, @elessariel, @pradeepgururani, @ge0rgecz, @Swad, @egaviriarestrepo, @ajaygangarde, @pcbl, @pilouk, @Vijay-Tummala, @grmkris

My requirement is to have a precision of two. But when i type any number, first decimal value is filled. eg: if i type 54 then it shows like 0.54 instead of 54.00, if i type 545 it appears as 5.45 instead of 545.00

My suggestion is user should be able to input dot at their wish. Also need to have limit for max number to be entered

FOLLOWED BY A LONG THREAD