Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
385
UltraNumericEditor tabout rounding issue..
posted

Hi,

When I am tabbing out from the numeric editor text box ,it seems to be automatically rounding is happening. But there is an issue with the below input.

I am inputting "12345678901234.50000", after tabout it is becoming "12345678901234.50195".

Can anyone please suggest me how to solve this issue?

Thanks & Regards

Nagaraju P

  • 21795
    Offline posted

    Hello Paruchuri,

    Thank you for posting in our forum.

    Yes, you are correct. When you set NumericType property to double the precision of the displayed number is 15 – 16 digits, as the value is represented as double. This is actually the build in precision of the double type. Please note you can set the NumericType to Decimal to avoid automatic rounding. Check the attached solution where I have implement this approach.

    Please let me know if you need any additional information.

    Thank you for using Infragistics Components.

    CAS-165669-V7D5Y5_01.zip