ngx-mask icon indicating copy to clipboard operation
ngx-mask copied to clipboard

ngx-mask rounding off to nearest

Open Jagan-Rameshbabu opened this issue 4 years ago • 1 comments

I'm using ngx-mask for a angular reactive formControl that gets input from user in dollar amount. Below is the replica of my code.

When i enter input as 999999999999999.99, I'm getting 1000000000000000 as formControl value which is throwing error at backend where i have 15,2 decimal restriction.

I'm using ngx 11.1.5 with Angular 11 with Material UI.

Jagan-Rameshbabu avatar Sep 06 '21 07:09 Jagan-Rameshbabu

Using ngx 11.1.5 version

Jagan-Rameshbabu avatar Nov 03 '21 04:11 Jagan-Rameshbabu

@Jagan-Rameshbabu Thanks for your using Ngx-Mask. Please update to latest version. It example, all work as expected - https://stackblitz.com/edit/angular-pumvn1?file=src%2Fmain.ts

andriikamaldinov1 avatar Jun 13 '23 10:06 andriikamaldinov1