From: Tobias Luetke Date: 2005-11-19T11:43:18+09:00 Subject: Re: 10.to_hex? 10.to_s(16) #=> a class Numeric def to_hex to_s(16) end end 10.to_hex #=> a On 11/18/05, Daniel Sch�le wrote: > Hello, > > I can't find the function to convert an number to its hex representation > I feel it must be there .. > > irb(main):068:0> Integer.methods.grep /hex/ > => [] > irb(main):069:0> Numeric.methods.grep /hex/ > => [] > > Regards, Daniel > > > -- Tobi http://jadedpixel.com - modern e-commerce software http://typo.leetsoft.com - Open source weblog engine http://blog.leetsoft.com - Technical weblog