Joe Van Dyk wrote:
> On 8/31/05, hsun <sunh11373 / hotmail.com> wrote:
> 
>>Hi,
>>
>>Does anyone know the api to convert a binary array into integer:
>>
>>for example: 00 00 00 0A => 10
> 
> 
> Have you looked at String#unpack?


"\000\000 A".unpack( "f" ) => 10.0

Zach