Converting string to int without losing the zero in the beginning
问题 I tried int.parse, and convert class to convert a string to int. While I'm converting. I'm losing the 0 in the beginning which i don't want. Ex : 09999 becomes 9999 - I don't want this. I want to keep it as it is. How can i do that? 回答1: You cannot. An int is meant to represent a mathematical integer. The numbers 09999 and 9999 are exactly the same number, mathematically. Perhaps there is a different problem here. Why do you need to do this? Maybe there's a better way to do what you want to