Negative 0

2 posts, 0 answers
  1. Angel
    Angel avatar
    1 posts
    Member since:
    Oct 2012

    Posted 12 Nov 2012 Link to this post

    Just got a negative 0 in the RadMaskedNumericInput control its a minor error I got by taking away quantities from its value until it became 0 when it got to 0 it showed the negative sign wich shouldnt :D
  2. Tina Stancheva
    Tina Stancheva avatar
    3299 posts

    Posted 15 Nov 2012 Link to this post

    Hi Angel,

    This behavior is by design. We implemented it after we received a lot of feature requests to allow -0 as a valid value of the control, since in many scenarios the users first enter the '-' sign and then start typing a number. Also, there are scenarios when you tab back in a MaskedInput with negative value, and you may need to enter - 0.12, so entering -0 in this scenario is also an expected behavior. Basically you can change the sign of a value in the MaskedNumeric/CurrencyInput by hitting the '-' sign.

    Also the minus sign can be removed along with the value of the control, on clearing the content through the ClearButton.

    Tina Stancheva
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Back to Top