2006/6/26, Timothy Hunter <TimHunter / nc.rr.com>:
> irb(main):001:0> x = 100
> => 100
> irb(main):002:0> x.to_s.length
> => 3

Be careful though if x can be something diffrent from a non negative integer.

robert

-- 
Have a look: http://www.flickr.com/photos/fussel-foto/