[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Re: character to hex/binary/etc...

Gavin Kistner

8/16/2007 8:33:00 PM

> Oops, no, that's not what I need. I can do that.
> I need to take "I" or "J" or whatever character and convert to hex!
> or binary

irb(main):001:0> "I"[0]
=> 73
irb(main):002:0> "I"[0].to_s(16)
=> "49"