Remove Zeroes At the Start of the Number

I believe you should not use like this as it will remove all the zeros including the ones in between the numbers.

To remove zeros only at the starting, you can use the below function.

variable.TrimStart("0"c)

Thanks

2 Likes