From: Zach Dennis Date: 2005-09-01T04:32:54+09:00 Subject: Re: how to convert binary array into integer Joe Van Dyk wrote: > On 8/31/05, hsun 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