Maximum is off by 1 for large numbers

2 posts, 0 answers
  1. Rami Abughazaleh
    Rami Abughazaleh avatar
    27 posts
    Member since:
    Feb 2010

    Posted 01 Oct 2010 Link to this post



    <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.
  2. Valeri Hristov
    Valeri Hristov avatar
    2252 posts

    Posted 02 Oct 2010 Link to this post

    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.

    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
  3. DevCraft R3 2016 release webinar banner
Back to Top