From: Elliot Temple Date: 2006-05-12T09:10:33+09:00 Subject: Re: Ascii Character to Decimal Base 10 value irb(main):124:0> 99.chr => "c" On May 11, 2006, at 4:47 PM, doug meharry wrote: > Greetings all, > > I would like to know how one might convert a letter such as "H" to its > corresponding ascii decimal value. On the flip side, how might I take > the decimal value and convert it back to the alpha-numeric > representation. > > Is there something simpler or better than using the String class > each_byte() method? I seem to recall there is a simple way to do just > this, but can't find it in the docs. > > Thanks, > > Doug > > PS: any ideas about doing this with Unicodes? > > -- > Posted via http://www.ruby-forum.com/. > > -- Elliot Temple http://www.curi.us/blog/