Add leading zeros to a number if applicable