Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
04/12/99 02:21
Read: times


 
#367 - RE: Int to Ascii
You can use sprintf, or if it's a single digit (0-9) you can just add 48 to the value to convert it to ASCII.

That is to say, if the keyboard returns the value 3, add 48 to it and you'll have 51. 51 is the ASCII value of the character '3'.

Good luck,
Craig Steiner


List of 4 messages in thread
TopicAuthorDate
Int to Ascii            01/01/70 00:00      
RE: Int to Ascii            01/01/70 00:00      
RE: Int to Ascii            01/01/70 00:00      
motorola lcd and keypad programs            01/01/70 00:00      

Back to Subject List