You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am learning so I don't know If I am doing something wrong or it is a bug.
Describe the bug
NumericUpDown shows System.InvalidCastException: Unable to convert object '89.6' of type 'System.Double' to type 'System.Nullable'1[System.Decimal]'.
I am using a class implementing IValueConverter to convert the value.
@nsrahmad I think we had a breaking change here in 11.0. The reason is, that double has rounding issues where decimal doesn't have these problems. This is important if you work with percentage or currency values.
I am learning so I don't know If I am doing something wrong or it is a bug.
Describe the bug
NumericUpDown shows System.InvalidCastException: Unable to convert object '89.6' of type 'System.Double' to type 'System.Nullable'1[System.Decimal]'.
I am using a class implementing
IValueConverter
to convert the value.To Reproduce
Project has just a few lines changed from template:
https://github.com/nsrahmad/7GUI-Avalonia/tree/master/TemperatureConverter
Expected behavior
No errors. The error contains the right answer, so conversion is happening.
Screenshots
Desktop (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: