What's the intention of 0-padding? If its just about aligning indexes, I'd just right-align the number (ie pad with spaces) which I'd consider much more readable.