On Mon, Aug 26, 2013 at 11:31 AM, Joel Pearson <lists / ruby-forum.com> wrote:

> It's probably coming from your input. Try replacing "gets.to_s" with
> "gets.chomp"


Good point!  Another reason why working with integers internally would be
preferable.

Cheers

robert

-- 
remember.guy do |as, often| as.you_can - without end
http://blog.rubybestpractices.com/