From: Arup Rakshit Date: 2013-02-04T01:10:44+09:00 Subject: Re: Can anyone tell me the computational logic of Unpack() method of string? Tony Headford wrote in post #1095012: > What is it you don't understand exactly ? > > Unpack decodes a string based on the format you specify and returns an > array of the decoded elements. The format specifier is made up of a > single character and may be followed by a number indicating how many > times to repeat the format specifier, or a '*' to indicate all remaining > elements. In the examples you provided: > > 1. 'A'.unpack('b*') > > Will return a string representation of the binary value of 'A' in LSB > first order. @Tony: Thank you very much! -- Posted via http://www.ruby-forum.com/.