From: Martin DeMello Date: 2004-07-16T04:57:16+09:00 Subject: Re: hex / rescue mark greenlancer wrote: > hello, > > there are a few questions after I've read the > manual... > > ``String.hex幹 converts a hex-string to a decimal > number. But how to convert a decimal number to a > hex value? number.to_s(16) It works for other bases too :) martin