Quote Originally Posted by mackrackit View Post
This thread might be useful, you will need to read it all to get to the point.
http://www.picbasic.co.uk/forum/showthread.php?t=6128


Are you putting a "#" in front of the variable some place? If I am not mistaken,
#1 would be 49
No but if I simple want to do next:
lcdout $fe,128+X,"ABCDE"
where X= 1 from string (bit0 ) I was see that cant be becouse Pic see that as 128+ASCII value and that cant we do!
After that I was probe to get DEC value from ASCII (1) waht was come from PC in message "128ABCDE" and see that byte[0] = "1" and really value for that is DEC 49 .
Or HEX $31 .
I need formula hove I translate $31 to dec 1 or any HEX to dec value...
HEX or ASCII to real integer.