From: Timothy Hunter Date: 2006-06-26T09:35:26+09:00 Subject: Re: Question: Counting integers 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 > irb(main):001:0> x = 100 => 100 irb(main):002:0> x.to_s.length => 3