Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

min/max decimals #59

Open
kamerat opened this issue Feb 8, 2018 · 1 comment
Open

min/max decimals #59

kamerat opened this issue Feb 8, 2018 · 1 comment

Comments

@kamerat
Copy link

kamerat commented Feb 8, 2018

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 🤔

@vincebanzon
Copy link

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"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants