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

Given negative numbers resetting to zero after certain decimal value

3 Answers 53 Views
Input
This is a migrated thread and some comments may be shown as answers.
Gopinath
Top achievements
Rank 2
Gopinath asked on 20 Nov 2015, 10:08 AM

Hi,

 In my project one of the input control is RadNumericTextBox and  it's allowed range is from --99999999999.999999999999 to 99999999999.999999999999.

 So i have given DecimalDigits value as 12.  But it is working only for Positive numbers. i.e. if i input -0.000000001  in the NumericTextbox and focus out of the control is resetting to ZERO.

I have tried by making AllowRounding value to 'false' also but no use .  So anyone please help me in this.

I should above to insert even negative numbers in the allowed range as shown above.

  

 

 

3 Answers, 1 is accepted

Sort by
0
Konstantin Dikov
Telerik team
answered on 24 Nov 2015, 08:38 AM
Hi Gopinath,

I have tested the scenario that you are describing with our latest version, but I was not able to replicate the issue in question. Following is the RadNumericTextBox that I have tested:
<telerik:RadNumericTextBox runat="server" MinValue="-99999999999.999999999999" MaxValue="99999999999.999999999999" NumberFormat-AllowRounding="true"
     NumberFormat-DecimalDigits="12">
</telerik:RadNumericTextBox>

If the issue persists on your side, please upgrade to our latest version and see if the same problem will be observed.


Kind Regards,
Konstantin Dikov
Telerik
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 Feedback Portal and vote to affect the priority of the items
0
Gopinath
Top achievements
Rank 2
answered on 02 Dec 2015, 11:29 AM

Thanks for update. 

'NumberFormat-AllowRounding="true" giving the trailing zeros if the decimal digits are less than 12.

While finding the fix for that i have found the thread http://www.telerik.com/forums/radnumerictextbox-decimal-digits-zero-problem which is similar. But this fix is end up with showing the exponential values instead of decimal value if the entered value is less i.e i have tried with -0.00000001.

So finally fix should be like, i want to display non exponential value  i.e. -0.00000001 without trailing zeros.

0
Konstantin Dikov
Telerik team
answered on 07 Dec 2015, 05:52 AM
Hello Gopinath,

The requirement that you have could not be achieved and the exponential value will be displayed in this scenario. Nevertheless, you could log a feature request in our Ideas & Feedback Portal for exposing a property that could prevent the exponential to be displayed:
If the item receives enough votes, our developers team will investigate the possibility of such integration.


Best Regards,
Konstantin Dikov
Telerik
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 Feedback Portal and vote to affect the priority of the items
Tags
Input
Asked by
Gopinath
Top achievements
Rank 2
Answers by
Konstantin Dikov
Telerik team
Gopinath
Top achievements
Rank 2
Share this question
or