On Wed, Jun 10, 2009 at 11:34 AM, Yukihiro Matsumoto<matz / ruby-lang.org> wrote:
> Hi,
>
> In message "Re: [Security] Ruby 1.8.6-pl369 released"
>  on Thu, 11 Jun 2009 01:28:06 +0900, Charles Oliver Nutter <headius / headius.com> writes:
>
> |1.9.1 appears to produce Float::MAX or Float::MIN for exponents
> |outside float range, not Inf. It seems like the possibility of it
> |running forever trying to produce an impossibly large Bignum should be
> |addressed in some similar way.
>
> 1.9.2 BigDecimal#to_f produces Inf for too big numbers. I am not sure
> what we can do for BigDecimal#to_i yet.

So Inf is official behavior then? I'm in process of at least getting
JRuby up to 1.9.x behavior for these cases.

Perhaps we can examine the size of the exponent for to_i to determine
whether it's within a reasonable range?

- Charlie