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?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You cannot. An
intis meant to represent a mathematical integer. The numbers09999and9999are 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 do.