Hello everybody. This seems like a simple problem, but I haven't been able to get it to work. Basically what I want to do is write a variable to the screen so that if the number is less than two digits it displays a 0 in the tens place.
This results in the number "3" printed on screen. But what I want is for the number "03" to be printed on screen. I've tried various things such as myvariable+00 but I haven't had much luck.
I suppose I could do it like this....
But I have the feeling there's a much tidier way of going about it since that would get a bit sloppy the more variables are added.