From: ts Date: 2003-07-03T00:04:00+09:00 Subject: Re: Base of Numbers >>>>> "V" == Volker Grabsch writes: >> There's "to_s()" for Integers taking a base, but is there V> In 1.8, #to_s can take an argument svg% ruby -e 'p 12.to_s(16); p 12.to_s(12)' "c" "10" svg% >> .. anything except printf that allows me to change the >> base of a number? perhaps #sprintf ??? Guy Decoux