Text number conversion

2009-08-17 Thread Len Morgan
I'm talking to a microprocessor device using sockets and it returns a string like the following: 0,0x7BCC The first item is a status code and the number after the comma is the hex value expressed as ASCII characters. It will always be 4 digits. I can't seem to convert this into a number

Re: Text number conversion

2009-08-17 Thread stephen barncard
the x is just to show that it's a HEX 16 bit number just do a baseconvert on the 7B66 part. - Stephen Barncard San Francisco http://barncard.com 2009/8/17 Len Morgan len-mor...@crcom.net I'm talking to a microprocessor device using sockets and it returns a string

Re: Text number conversion

2009-08-17 Thread stephen barncard
put baseConvert(7B66,16,10) 31590 - Stephen Barncard San Francisco http://barncard.com 2009/8/17 stephen barncard stephenrevoluti...@barncard.com the x is just to show that it's a HEX 16 bit number just do a baseconvert on the 7B66 part.