Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

NumericUpDown SnapToMultipleOfInterval property does not work with decimal increments #3377

Closed
monoludic opened this issue Nov 23, 2018 · 0 comments
Labels
Milestone

Comments

@monoludic
Copy link

Using a NumericUpDown control with a decimal interval (eg 0.01) and SnapToMultipleOfInterval=True, incrementing using buttons produces values not rounded as expected.

IMHO, Value should be rounded to the nearest interval on each increment, otherwise errors are cumulated.
(0.01 + 0.01 + 0.01 + 0.01 + 0.01 + 0.01) == (0.01 * 6) is false on my computer.

2018-11-23_10-04-32

  • MahApps.Metro version 1.6.5
  • OS: Win7 Pro SP1
  • Visual Studio 2017 15.9.1
  • .NET Framework 4.7.1
@punker76 punker76 added the Bug label Nov 23, 2018
@punker76 punker76 added this to the 2.0.0 milestone Nov 23, 2018
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Development

No branches or pull requests

2 participants