in reply to Formatting Numbers (was: adding elements to variables)
Read up on printf and sprintf for all your formatting needs.