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
780
XamNumericEditor - numbers with more than 2 decimals
posted

Hi, I have a problem with xamNumericEditor. I need to enter numbers with several decimals. I put mask property to "{}{double:6.20}" and format property to "###,##0.00##################", promptchar is empty.  With this properties I can see the numbers ok, but when I edit I see 20 ceros after de decimal point.  ie: 1.123456 shows 1.00000000000000000000 in edit mode, decimal numbers have dissapeared and I do not want to see all ceros.  In some cases I can see numbers that do not exists: 1968.0207 edits as 1,968.02070000000003346944 Where the last 7 digists come from?  Can somebody help me?

Parents
No Data
Reply
  • 9836
    posted

    I think the issue is related to the Mask where you are setting 20 digits in the fraction portion. The double values have precision of 15-16 digits. Yo should be able to resolve the issue with this mask:

    Mask

     

     

    ="{}{double:6.15}"

    You may also consider using decimal values which have a greater precision.

    Hope this helps.

Children