From: Mattias Bud Date: 2007-02-25T22:12:11+09:00 Subject: Re: Hex to 4-byte/32-bit quantity Instead of converting the bytes to hex first I just unpacked them: s.unpack("N") > 10 -- Posted via http://www.ruby-forum.com/.