in reply to Range of numbers with 0 added for single digits.

See sprintf. You probably want the %02d format.