From: Phillip Hutchings Date: 2006-06-26T09:30:00+09:00 Subject: Re: Question: Counting integers On 6/26/06, Dark Ambient wrote: > I 've come across this somewhere but right now it's escapeing me. > > x = 100 , so I want to find out how many digits are in that number. > > ?? > Tia > Stuart x.to_s.length will do it -- Phillip Hutchings http://www.sitharus.com/