How to convert from int to string. I wanna to display number in LCD because LCD accept on string. TQ
Printable View
How to convert from int to string. I wanna to display number in LCD because LCD accept on string. TQ
One way is th "Dig" command, you can isolate each digit of your number, and output it to your LCD.
Dwayne
Hi,
If I underastand your question correct what you need is the # operator.
LCDOUT $FE, 1, #YourVariable
If YourVariable holds the value 106 this command will print 106 on the LCD instead of the ASCII representation of 106 which is "j". This will also work with Serout, Serout2, Hserout & Debug.
/Henrik Olsson.
Thanks HenrikOlsson, your reply is very helpful.