vue-numeric
vue-numeric copied to clipboard
min/max decimals
I have some thoughts about the :precision="x"
prop.
There is a usecase where you have a number of 1
, if you have :precision="4"
, it will look like this: 1,0000
. It is really useless to display all the zeroes in my opinion.
I assume there is people and usecases that would like the extra zeroes to be there. However, I would love for it to be an option(prop) to enable/disable showing of zeroes. eg minDecimals="2"
and maxDecimals="4"
. This would output: 1,00
but the user is able to edit the value to the following: 1,9999
.
If you also sit the prop :precision="4"
, sitting 1,99995
would output: 2,00
🤔
I agree to this and is having the same issue. If I have precision: 4 I would want user to input value of "1" and only show "1", it should not show "1.0000"