From: Lloyd Linklater Date: 2007-12-11T21:30:25+09:00 Subject: Re: Hex to decimals Shandy Nantz wrote: > Any suggestions on how to convert a Hex value to its decimal equivalent? > Have been coming up blank on this one. Thanks, > > -S This is what it is for base 16: p 10.to_s(16) => 'a' p 'a'.to_i(16) =>10 Just use the base you want in the parens. -- Posted via http://www.ruby-forum.com/.