How to remove leading zeros in strings using C#?
For example in the following numbers, I would like to remove all the leading zeros.
0001234 0000001234 00001234
This is the code you need:
string strInput = "0001234"; strInput = strInput.TrimStart('0');
1.4m articles
1.4m replys
5 comments
57.0k users