This is a migrated thread and some comments may be shown as answers.

Maximum is off by 1 for large numbers

1 Answer 33 Views
NumericUpDown
This is a migrated thread and some comments may be shown as answers.
Rami Abughazaleh
Top achievements
Rank 1
Rami Abughazaleh asked on 01 Oct 2010, 10:07 PM
Hi.

RadControls_for_Silverlight_4_2010_2_0924_DEV_hotfix

<telerik:RadNumericUpDown NumberDecimalDigits="0" Minimum="0" Maximum="8589934591" />

When running out of browser, I am able to enter 8589934591 in the control and then click the up button and it will change to 8589934592.

Since this does not happen if Maximum="3" for example, this seems to be a bug.  ;)

Thank you.

1 Answer, 1 is accepted

Sort by
0
Valeri Hristov
Telerik team
answered on 02 Oct 2010, 09:08 PM
It's not a bug. The double values (the Value, Minimum, Maximum properties of RadNumericUpDown are of type double) have limited precision, hence the problem.

Greetings,
Valeri Hristov
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
NumericUpDown
Asked by
Rami Abughazaleh
Top achievements
Rank 1
Answers by
Valeri Hristov
Telerik team
Share this question
or