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?
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.
Thanks Vlad, I can edit the numbers well.
But, are there any way to see the number without all mask, for example, if i have 1.12345 when I edit the number I see 1.123456000000000. I have to show all the decimals but not the zeros to the right of the decimals. Why do they go out on having edited if my format is "###,##0.00#############"?
In some numbers non-existent decimals appear: 1,868.0207 edits as 1,868.020700000000033 .