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 and Max decimal places #44

Open
Red-3 opened this issue Jan 25, 2017 · 1 comment
Open

Min and Max decimal places #44

Red-3 opened this issue Jan 25, 2017 · 1 comment

Comments

@Red-3
Copy link

Red-3 commented Jan 25, 2017

We have a requirement to show at least 2dp and a maximum of 6dp.

So a model value having < 2dp would show with exactly 2dp. (An integer 123 would be shown as 123.00 for example.) A model value having 4 dp precision would be shown with exactly 4dp. A model value having >= 6dp would show exactly 6dp with given rounding strategy.

(I would hope it would be something like setting numFract: 6 and numFixed: 2, but numFixed is a boolean, not number of dps.)

So as far as I can tell, there is no way to configure AWNUM's formatter to do this?
If there is a way, please let me know. If not please take this as a feature request.

@uhlryk
Copy link
Owner

uhlryk commented Jan 28, 2017

It looks useful. I will set this as feature and implement later.

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

No branches or pull requests

2 participants