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

Radnumerictextbox decimal part problem

1 Answer 74 Views
Input
This is a migrated thread and some comments may be shown as answers.
Erkan Şahan
Top achievements
Rank 1
Erkan Şahan asked on 11 Jan 2010, 01:41 PM
Hi,

I am using a Radnumerictextbox with this code on front side and I am setting its parameters on the codebehind according to selection,
On aspx:

<telerik:RadNumericTextBox ShowSpinButtons="true" NumberFormat-DecimalDigits="4"  IncrementSettings-InterceptArrowKeys="true"

 

 

IncrementSettings-InterceptMouseWheel="true" Label="" runat="server" ID="txtPrice"

 

 

Width="80px">

 

 

</telerik:RadNumericTextBox>


On .cs

txtPrice.MinValue = 1.2575
txtPrice.MaxValue= 1.4575
txtPrice.IncrementSettings.Step =0.0005

The problem is while using spin buttons to change values , it show the decimal part more than i set which was 4.

For instance ; when the value is set to 1.2580 it shows 1.257999999999. After clickling up spin button it makes it 1.2585 and after some more clicking on some other values ist shows this 999999 part of decimal thing.

Is this a bug of the component ? if so, what can i do to fix this.

 

1 Answer, 1 is accepted

Sort by
0
Pavel
Telerik team
answered on 12 Jan 2010, 07:58 AM
Hello Erkan,

I was able to replicate the problem with versions of Telerik.Web.UI prior to Q3 Service Pack 1. However the problem did not appear when I tested with the latest official release (2009.3 1208). Please update your controls to that version and let us know if that solves the problem for you.

Sincerely yours,
Pavel
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Input
Asked by
Erkan Şahan
Top achievements
Rank 1
Answers by
Pavel
Telerik team
Share this question
or