From: "QUEISSER,ANDREW (HP-Corvallis,ex1)" Date: 2002-03-30T08:28:55+09:00 Subject: RE: Decimal->Hex You can use sprintf, just like in the good old C days but in Ruby sprintf returns a string. Andrew > -----Original Message----- > From: DiCioccio, Jason [mailto:jdicioccio@epylon.com] > Sent: Friday, March 29, 2002 2:51 PM > To: ruby-talk@ruby-lang.org > Subject: Decimal->Hex > > > > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > I have a feeling I might be missing something very simple > here. But I found > a method to convert a string representing a hexadecimal value > into a Fixnum > (String#hex). Is there a way to convert it back now? > > Thanks in advance, > - -JD- > > -----BEGIN PGP SIGNATURE----- > Version: PGP 7.0.4 > > iQA/AwUBPKTx/b8+wXo6G32BEQJXpwCfcBbLelw6YnmK6K3Vj4+U9SrIf4kAniTQ > aMuPsAT8EmEu1FxjG1NRdiFj > =iqTS > -----END PGP SIGNATURE----- >