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

NumericUpDown - Issue when decreasing value below 1 #7386

Closed
tarun06 opened this issue Jan 18, 2022 · 2 comments
Closed

NumericUpDown - Issue when decreasing value below 1 #7386

tarun06 opened this issue Jan 18, 2022 · 2 comments
Labels

Comments

@tarun06
Copy link

tarun06 commented Jan 18, 2022

Describe the bug
The issue if found when numericupdown is used with value 1 and increment set ro 0.1.

To Reproduce
STR:

  1. Add numericupdown as
  2. Decrease the value til 0.7

Actual result - The value change to 0.7000000...

Screenshots
image

Avalonia - Version - 0.10.11

The issue was not seen in version 0.10.11-rc.1

@tarun06 tarun06 added the bug label Jan 18, 2022
@maxkatz6
Copy link
Member

Dup #5318

I can reproduce this issue in 0.10.11-rc.1 as well.
image

It also was fixed with a breaking change (by switching from Value double to decimal) in #5981, which wasn't backported to the stable 0.10.x branch.
Another workaround for the stable branch - use FormatString="0.#" or something.

@tarun06
Copy link
Author

tarun06 commented Jan 18, 2022

@maxkatz6 Thanks Max

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

No branches or pull requests

2 participants