Martin DeMello wrote:
> On Wed, Apr 1, 2009 at 4:16 AM, Siep Korteling <s.korteling / gmail.com> 
> 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/.