RobinHerbots / Inputmask

Input Mask plugin
https://robinherbots.github.io/Inputmask/
MIT License
6.39k stars 2.17k forks source link

How set the number of digits after the decimal point #2732

Open baxing opened 1 year ago

baxing commented 1 year ago

Hello,

If I want to set the inputmask for only positive currency inputs. provided that

If the number in front of the decimal point is 0, then 4 digits after the decimal point can be entered. for example 0.1234

But if the number before the decimal point is greater than or equal to 1, then the number of digits after the decimal point can be entered only 2 places. For example, 1.12 or 1,234.56

Please suggest me how to set the properties inside the inputmask to get the desired result.