hi, i m making button counter with arduino uno and LCD,
problem is
number start 0 at right side of display
when number increasing 9 to 10 it shift left to right side,
i want to start 0 digit at right last and it go 9 to 10 it shift left
This is the kind of stuff that the xxprintf() routines were designed for.
If you can afford to give up about 1.5k of code space you can use the routines.
You can google printf() to see how to use the format string: http://www.cplusplus.com/reference/cstdio/printf/
In this example:
"%05d" tells the routine that it is to create a 5 character output string that is an integer number and that it should be zero filled if it is less than 5 digits.
If you leave out the 0 then it will fill with spaces rather than zeros.