Sorry for the misunderstanding title, I don't know how could explain better.
That's my problem: I have this loop
for(i=1; i<1000; i++){
"MyName_"+i;
}
This will give the following
MyName_1
MyName_2
...
MyName_10
...
MyName_100
How can I do, in a easy way, to have the same number of digits anytime? This means
MyName_001
...
MyName_010
...
MyName_100
obviously without doing stuff like
if(i<10)
...
if((i>10)&&(i<100))
because the input number is a input so it may be 1000, 10000 or 10000000 and I don't want to write tons of "if()"...
Thank you