[Rails] ruby pack unexpected results

2013-06-24 Thread John Merlino
I have two hex values and expect back the value 3007 What pack does is take the array of hexes and formats them into a string (if ASCII representation, then ASCII character, otherwise the raw hex as string). Then I take the string of hexes and unpack them, that is, get the unsigned int

Re: [Rails] ruby pack unexpected results

2013-06-24 Thread Colin Law
On 24 June 2013 17:49, John Merlino stoici...@aol.com wrote: I have two hex values and expect back the value 3007 What pack does is take the array of hexes and formats them into a string (if ASCII representation, then ASCII character, otherwise the raw hex as string). Then I take the string

Re: [Rails] ruby pack unexpected results

2013-06-24 Thread Colin Law
On 24 June 2013 20:59, Colin Law clan...@googlemail.com wrote: On 24 June 2013 17:49, John Merlino stoici...@aol.com wrote: I have two hex values and expect back the value 3007 What pack does is take the array of hexes and formats them into a string (if ASCII representation, then ASCII