From: Vidar Hokstad Date: 2007-01-28T22:25:06+09:00 Subject: Re: Question about digits On Jan 28, 12:10 am, "Fer#" wrote: > Why call them digits, if you can call them characters? > > If you have got arbitrary_number, you got arbitrary_number.to_s so: [... snip] > This above will do for base 10, and printf stuff may help with hex, > oct at least. Actually, Fixnum#to_s and Bignum#to_s takes optional arguments specifying base, so to handle hex you'd do arbitrary_number.to_s(16) etc. Vidar