I have two numbers that can vary between 1 and 22. Whenever any of the two is comprised between 1 and 9 I would like to pad them with a zero e.g.
01/22 or 01/09 so that my result is always displayed at the same place. I cannot find a num to char conversion function. Any trick to suggest ? (I could have four different lcdout statements according to the different values of my two numbers but it seems a bit cumbersome...)
Thanks
Jacques
01/22 or 01/09 so that my result is always displayed at the same place. I cannot find a num to char conversion function. Any trick to suggest ? (I could have four different lcdout statements according to the different values of my two numbers but it seems a bit cumbersome...)
Thanks
Jacques