JsDaddy / ngx-mask

Angular Plugin to make masks on form fields and html elements.
https://jsdaddy.github.io/ngx-mask
MIT License
1.15k stars 298 forks source link

Decimal value round option #1288

Closed alpayoguz closed 6 months ago

alpayoguz commented 10 months ago

Ngx mask is not rounding decimal values as default. For example if value is 1999.98955 and "seperator.2" is selected, then it should be like 1999.99 Please add this option

andriikamaldinov1 commented 6 months ago

@alpayoguz Thanks for using Ngx-maks. We have inputTransformFn. Where u can write our own function.

It example - https://stackblitz.com/edit/stackblitz-starters-vutf6u?file=src%2Fmain.ts