From: "Ara.T.Howard" Date: 2005-11-19T11:47:59+09:00 Subject: Re: 10.to_hex? ---1400102478-509182917-1132367977=:12381 Content-Type: MULTIPART/MIXED; BOUNDARY="-1400102478-509182917-1132367977=:12381" This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. ---1400102478-509182917-1132367977=:12381 Content-Type: TEXT/PLAIN; charset=X-UNKNOWN; format=flowed Content-Transfer-Encoding: QUOTED-PRINTABLE On Sat, 19 Nov 2005, [ISO-8859-1] Daniel Sch=FCle 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/ > =3D> [] > irb(main):069:0> Numeric.methods.grep /hex/ > =3D> [] > > Regards, Daniel harp:~ > ruby -e' p("%x" % 66) ' "42" -a --=20 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D | ara [dot] t [dot] howard [at] gmail [dot] com | all happiness comes from the desire for others to be happy. all misery | comes from the desire for oneself to be happy. | -- bodhicaryavatara =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D ---1400102478-509182917-1132367977=:12381-- ---1400102478-509182917-1132367977=:12381--