Asp Forum
Home
|
Login
|
Register
|
Search
Forums
>
comp.lang.ruby
Re: Simple Q: bit string -> integer
Todd
5/6/2007 2:25:00 PM
--- Harry Kakueki <list.push@gmail.com> wrote:
> Try this
>
> str = "10010000"
> p str.to_i(2)
> puts
> p 255.to_s(16)
> p 255.to_s(2)
>
> Harry
Yes, thanks a bunch. For some reason, #to_i was the
last place I thought to look.
Todd
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail...
Servizio di avviso nuovi messaggi
Ricevi direttamente nella tua mail i nuovi messaggi per
Re: Simple Q: bit string -> integer
Inserendo la tua e-mail nella casella sotto, riceverai un avviso tramite posta elettronica ogni volta che il motore di ricerca troverà un nuovo messaggio per te
Il servizio è completamente GRATUITO!
x
Login to ForumsZone
Login with Google
Login with E-Mail & Password