SyntaxFix
Write A Post
Hire A Developer
Questions
try this code:
string value = "100"; value = value.Contains(".") ? value.TrimStart('0').TrimEnd('0').TrimEnd('.') : value.TrimStart('0');