http://qs321.pair.com?node_id=103072


in reply to number formatting

Using %010d in printf or sprintf will 0 pad them to a length of 10 (the leading 0 will pad them with zeroes and the remainder of the number is the length).