I have a question or actually two regarding the
Convert.ToInt32 function or Int32.Parse.
It seems when I use Int32.Parse("06487965") or the other function it just seems to lose the 0.
So the output will be "6487965".
My questions:
- Why is that exactly ?
- How can I solve this without getting into crazy hacks ?
Leading 0’s aren’t represented when you
ToStringanintby default. You want to pass a format like"00000000".