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

Add roundDecimals option in breaking changes #128

Closed
Lipata opened this issue Jan 26, 2017 · 1 comment
Closed

Add roundDecimals option in breaking changes #128

Lipata opened this issue Jan 26, 2017 · 1 comment
Assignees

Comments

@Lipata
Copy link
Member

Lipata commented Jan 26, 2017

Before:
The igNumericEditor currently always truncates the decimal positions overflowing the maxDecimals length.

Now:
The igNumericEditor rounds up to the nearest number in such cases. A new option 'roundDecimals' is introduced, which is enabled by default. It gets/sets whether the last decimal place will be rounded, when the maxDecimal option is defined and applied. For example if the initial editor value is set to 123.4567, maxDecimals option is set to 3 and roundDecimals is enabled, editor will round the value and will display it as 123.457. If roundDecimals is disabled then editor value will be truncated to 123.456.

@Lipata
Copy link
Member Author

Lipata commented May 17, 2017

Added to vNext branch

@Lipata Lipata closed this as completed May 17, 2017
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

1 participant