I need to have a 2 digit output of a number only froma variable. if a var is less then 10 then if it is 5, i need to output 05 and not 5

A simple Internet search resulted in about a gazillion results for your question. Here is one that will get you started .

Thank you so much.