In SX Microcontrollers, SX/B Compiler and SX-Key Tool, PJMonty wrote: Originator99, OR'ing the numbers 0 to 9 with $30 is a classic old school trick for converting to ASCII. It works because the ASCII value for the number "0" is $30, and ASCII for "9" is (you guessed it) $39. In this case simply adding them together would also work just as well. Glad to hear it helped. [list]Thanks, PeterM[/list] ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=155619#m155758 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2006 (http://www.dotNetBB.com)