Just copy each nibble to a separate byte and OR with 0x30. John Clark, Software Engineer mailto:JohnC@inter-intelli.com (317) 715-8175 (voice & fax) Interactive Intelligence, Inc. 3500 DePauw Blvd., Suite 1060 Indianapolis, IN 46268-1136 http://www.inter-intelli.com > -----Original Message----- > From: juha tuomi [SMTP:juha.tuomi@LIPERI.FI] > Sent: Tuesday, March 16, 1999 6:44 AM > To: PICLIST@MITVMA.MIT.EDU > Subject: Binary to ASCII conversion > > Hi ! > I have a little problem. I should convert a 16 bit value to > ASCII-characters. > > 2 bytes -> '9' '9' '9' '9' four separate ASCII-chars. > > The 16 bit value can not be greater than 9999, so 4 digits will be enough. > Do you have any solution? > > Greetigs, Juha