From: Brian Candler Date: 2011-04-07T18:43:17+09:00 Subject: Re: Packing and unpacking unsigned integers of arbitrary size as binary strings Oh, I forgot to do the reverse: >> bin = "\253T\251\214\353\037\n\322" => "\253T\251\214\353\037\n\322" >> bin.unpack("H*").first.to_i(16) => 12345678901234567890 -- Posted via http://www.ruby-forum.com/.