angular-dynamic-number icon indicating copy to clipboard operation
angular-dynamic-number copied to clipboard

Min and Max decimal places

Open Red-3 opened this issue 8 years ago • 1 comments

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.

Red-3 avatar Jan 25 '17 19:01 Red-3

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

uhlryk avatar Jan 28 '17 12:01 uhlryk