I googled the web for hours but couldn't find my answer. I need when a user types or copies any number in TextBox then the number should follow the bellow rules:
- Only one decimal point should be permitted.
- Thousand Separator.
- Trailing zeros should be removed. I mean the zeros after decimal point should NOT be displayed.
Update For example,
123 => 123
1234.00 => 1,234
123456.05 => 123,456.05
123456.50 => 123,456.5
How can I do this?