From: Joel VanderWerf Date: 2009-09-14T07:52:03+09:00 Subject: Re: Overflow behavior jacob navia wrote: > What is the official behavior of ruby in case of integer overflow? Integers overflow from Fixnums (30 bits) into Bignums (unlimited precision integers). irb(main):003:0> x = 2**30 - 1 => 1073741823 irb(main):004:0> x.class => Fixnum irb(main):005:0> x+1 => 1073741824 irb(main):006:0> (x+1).class => Bignum -- vjoel : Joel VanderWerf : path berkeley edu : 510 665 3407