On Apr 6, 2005 12:25 PM, Zev Blut <rubyzbibd / ubit.com> wrote:

> I was disappointed to find that there is not an instance method for
> Numeric that lets you convert the value to a hexadecimal string.

...

> Or is there already a method that I missed?

Try:

  irb(main):002:0> 42.to_s(16)
  => "2a"

HTH,


-- 
Nathaniel

<:((><