G
Guest
How would one left pad a string with a repeating character?
For example, to create a 9 character string left padded with zeroes:
999 should become 000000999
1 should become 000000001
and so on...
Thanks for any help!
For example, to create a 9 character string left padded with zeroes:
999 should become 000000999
1 should become 000000001
and so on...
Thanks for any help!