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 00000012
Using the following will return a single 0 when input is all 0.
string s = "0000000" s = int.Parse(s).ToString();