I'm having a problem with some numbers. I need to add zeros to the beginning of three numbers that are input IF those numbers are less than 3 digits. I have that working I believe. I have the numbers stored as strings and add one or two zeros to the beginning of those strings if needed.
Now, after all of that I have to connect those 3 numbers into one larger number that will be 9 digits, and the problem is the first number. If I have to add zeros to the first number, then those zeros get cut off when I string them all together into a large number. So it's the leading zeros that get chopped off, and I was wondering how to avoid that.
I'm sure it's not that tough, but I'm having trouble. Thanks!
Now, after all of that I have to connect those 3 numbers into one larger number that will be 9 digits, and the problem is the first number. If I have to add zeros to the first number, then those zeros get cut off when I string them all together into a large number. So it's the leading zeros that get chopped off, and I was wondering how to avoid that.
I'm sure it's not that tough, but I'm having trouble. Thanks!