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

NumberDecimalDigits does not round the value as expected

2 Answers 118 Views
NumericUpDown
This is a migrated thread and some comments may be shown as answers.
Mihai
Top achievements
Rank 1
Mihai asked on 17 Jun 2013, 01:13 PM
Hi,

We're using RadNumericUpDown to set some percentage values with 2 digits in our application.

The case in which the control does not work as I expect is the following:
  • If I enter 0.001, the bound StagePercentage property is rounded as expected to 0
  • If I enter 0.0001, the bound StagePercentage property is rounded as expected to 0
  • If I enter 0.00001, the bound StagePercentage property is not rounded and set to 0.00001

However, if I enter other values such as 0.11111 or 0.0000101, then the behavior is as expected.

The xaml is the following:
<telerik:RadNumericUpDown Minimum="0" Maximum="100" 
 NumberDecimalDigits="2"
 Width="250" HorizontalAlignment="Left" 
 Value="{Binding StagePercentage, Mode=TwoWay, ValidatesOnDataErrors=True}" />

Is there a bug in the control or is it something that I am missing?

Thank you.


Mihai Coros
.NET Developer
www.coresystems.ch

2 Answers, 1 is accepted

Sort by
0
Accepted
Kalin
Telerik team
answered on 20 Jun 2013, 08:46 AM
Hi Mihai,

Thanks for your feedback, we were able to reproduce the issue as explained. We will need some time to investigate it further and after that I'll get back with more details.

Regards,
Kalin
Telerik

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Kalin
Telerik team
answered on 25 Jun 2013, 09:50 AM
Hello Mihai,

We have logged the issue in our P.I.T.S. system, so you can track its status on the following link:

http://www.telerik.com/support/pits.aspx#/public/silverlight/15237

I have updated your Š¢elerik points for the report.

Regards,
Kalin
Telerik

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
NumericUpDown
Asked by
Mihai
Top achievements
Rank 1
Answers by
Kalin
Telerik team
Share this question
or