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
585
UltraNumericEditor with MaskInput: fraction seems to cut off after 20
posted

Hi,

with Infragistics 20.1.104, given an SQL datatype like `numeric(23, 20)`, I'd like to use MaskInput to show an appropriate placeholder.

If I set it to `{LOC}-{double:3.20}`, though, the entire fractional portion gets set to a series of zeroes.

If I set it to `{LOC}-{double:3.19}`, this doesn't seem to occur.

So I think I'm running into some kind of internal limit?

Parents
No Data
Reply
  • 7495
    Offline posted

    Hello Soren,

    Thank you for contacting. In order to understand the issue i set up a basic sample like this:

    double value = 1.12345678901234567890D;
    Debug.WriteLine(value.ToString("g18"));
    Debug.WriteLine(value.ToString("g19"));
    Debug.WriteLine(value.ToString("g20"));
    and find 17 digits after the decimal and nothing more, ever, which makes me believe that there is a limit from the .net itself.
    Let me know if you have any question.
    Regards,
Children