From: Siep Korteling Date: 2009-04-01T08:15:54+09:00 Subject: Re: Why does mathn kill this method? Martin DeMello wrote: > On Wed, Apr 1, 2009 at 4:16 AM, Siep Korteling > wrote: >> >> STDOUT.sync=true >> >> puts sum_digits(12) #=> 3 >> >> require 'mathn' >> puts sum_digits(12) # hangs > > n /= 10 just keeps making n into a smaller and smaller rational. it > never reaches 0 > > martin Yes, that's clear. Thanks for the help (real fast), Christopher and Martin. Siep -- Posted via http://www.ruby-forum.com/.