Double Digit Dilemma
January 7, 2009 12:00 AM
I have a variable that I always want to display as 2 digits. So whenever it is less than 10, I would like it to show as 00, 01, 02, etc. Adding 0 to the variable beforehand doesn’t work because it is treated as a number and not a string. Using "0" changes it to a string, but also includes the quotations.Is there a way to achieve this?
Discussions have been disabled for this post