vue-numeric icon indicating copy to clipboard operation
vue-numeric copied to clipboard

min/max decimals

Open kamerat opened this issue 7 years ago • 1 comments

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 🤔

kamerat avatar Feb 08 '18 21:02 kamerat

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"

vincebanzon avatar Nov 29 '18 07:11 vincebanzon