Phrogz wrote: > Simon Kröçer wrote: >> v = 0x217962755220666f207463657073612074656577732061207369206d756e676942 >> puts [v.to_s(16)].pack('H*').reverse >> >> terse enough? :) > > Wow, that's hot. Thanks :) > > Got any golf for the reverse? (Creating the number from the string.) Well, just do the reverse: s = 'Bignum is a sweet aspect of Ruby!' puts s.reverse.unpack('H*').first.to_i(16) cheers Simon