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

Support rounding numbers from format #8

Open
andersnm opened this issue Nov 2, 2017 · 0 comments
Open

Support rounding numbers from format #8

andersnm opened this issue Nov 2, 2017 · 0 comments

Comments

@andersnm
Copy link
Owner

andersnm commented Nov 2, 2017

Suggest a new NumberFormat.Round() method to return numeric inputs as numbers still, but with number formatting rules applied - i.e round to number of decimals, percent multiply, thousands division.

F.ex the number 0.02345 returns different values depending on the format:

Number format Round(0.02345) output
0% 2
0.00000, 0.00002
0.00 0.02

This helps for cases when the user wants to insert the "visual part" of a value into a numeric database field.

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

1 participant