From: theschof@... (TheSchof) Date: 2002-01-22T08:30:54+09:00 Subject: Re: to_hex? Michael Davis wrote: > > Jack Dempsey wrote: > > > Is there an easy way to convert a string to hex? > > ie > > > > '15'.to_hex => 'F' > > > > TIA, > > Jack > > > > > > > > print sprintf '%X', 15 > > -- > Michael Davis > Database Architect and Senior Software Engineer, Seva Inc. > Email: mdavis@sevainc.com Or even: irb(main):007:0> "%X" % 15 "F" Alexander Schofield