From: John Gregory Date: 2009-07-06T08:24:13+09:00 Subject: Re: Convert an Character to the ASCII Character Code Aaron Patterson wrote: > On Mon, Jul 06, 2009 at 07:32:38AM +0900, John Gregory wrote: >> >> I would still like to know how to get the same results using my current >> version. > > How about this: > > "e".getbyte(0) > > and: > > "e".getbyte(0).to_f That is perfect, thanks a lot! -- Posted via http://www.ruby-forum.com/.