Hello, sometimes it is needed to display defined number of zeros in front of variable, when using LCDOUT. So say when you have to display 15, you display 15, but when you have to display 7, you display 07
In case of 2 digit variable it is quite easy:

Code:
IF X>=10 then Y=X DIG 1  
ELSE
Y=0
ENDIF
X= X DIG 0
LCDOUT $FE, $C0, #Y, #X
But what if I need to display 1-2-3-4 leading zeros?
Add that many extra variables and handling routines?