>IIRC number is a String here so you must convert it to do integer math.
Yes, you're completely right. I forgot he grabbed the variable from 
STDIN.

-- 
Posted via http://www.ruby-forum.com/.