Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / WPF > NumericUpDown > Decimal precision to significant digit

Not answered Decimal precision to significant digit

Feed from this thread
  • Posted on Jul 29, 2011 (permalink)

    Hi,

    We develop engineering software tools which means we must support values to varying degrees of accuracy.

    For input from the user we are using the RadNumericUpDown control and set the NumberOfDecimalDigits property to the required precision. This works great however, for example if we set the precision to 10dp, the control displays 0.000000000 for a value of "0".

    How can we change the control to display the value up the the significant digit rather than the maximum precision specified on the control?

    To further clarify:

    with a max of 10dp precision allowed if the user enters "1.1234" the value in the text box is 1.1234000000. However the user just wants to see 1.1234 without the trailing zeros.

    Regards

    Reply

  • Konstantina Konstantina admin's avatar

    Posted on Aug 3, 2011 (permalink)

    Hi Simon,

    I am afraid that this is not possible with the current implementation of the control. If we receive more clients' requests we will consider implementing a way to remove the unnecessary digits.
    Sorry for the caused inconvenience.

    All the best,
    Konstantina
    the Telerik team
    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get now >>

    Reply

  • J.S. avatar

    Posted on Aug 5, 2011 (permalink)

    Hi.

    This would be a greate feature.
    Currently we switched to the "Extended WPF Toolkit" from Codeplex if we need a NumericUpDown. 
    It is free and supports the requested behaviour.


    Regards,

    Reply

  • Posted on Aug 5, 2011 (permalink)

    Thanks for your reply J.S

    Yeah we have switched over to the DoubleUpDown which we are now using which has the desired affect. They also have a DecimalUpDown and IntegerUpDown.

    Regards


    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / WPF > NumericUpDown > Decimal precision to significant digit
Related resources for "Decimal precision to significant digit"

WPF NumericUpDown Features  |  Documentation  |  Demos  |  Telerik TV  |  Self-Paced Trainer  ]