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
2815
Mask for conditional decimal placeholder
posted

I have ValueType of  XamNumericEditor set to Double.  However, a user could enter 1 or 1.0 or 1.1 or -1.1.  If a number with decimal is entered, I do not want decimal displayed.  If the number is positive, I do not want "+" displayed.  I have tried several masks but none of them fit the bill:

 -9999999999.9999999999 always displays a minus sign infront of the number as well as the decimal operator even if I have a whole number.

 -nnnnnnnnnn.nnnnnnnnnn displays zero after the decimal placeholder even when I enter a whole number.

TIA.