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

Option to not allow decimal numbers #30

Open
juandfranco opened this issue Sep 22, 2020 · 3 comments
Open

Option to not allow decimal numbers #30

juandfranco opened this issue Sep 22, 2020 · 3 comments

Comments

@juandfranco
Copy link

Greetings, do you plan to add one more option to disable and not allow entering decimal numbers?

@maltaisn
Copy link
Owner

I could do that. But what should happen if user enters 1 / 3 for example or anything else that results in a fractional result? Should an error be shown similar to errors shown when result is out of bounds? Or just round the result?

@juandfranco
Copy link
Author

You could give the options to round or disable the divide operation, the last being the most interesting

@maltaisn
Copy link
Owner

Disabling division doesn't seem like a good idea for user experience. And rounding can already be done manually after the dialog is confirmed. What's your use case for this?

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