From: Charles Oliver Nutter Date: 2009-06-12T08:21:36+09:00 Subject: Re: [Security] Ruby 1.8.6-pl369 released On Thu, Jun 11, 2009 at 1:37 AM, Yukihiro Matsumoto wrote: > Basically.  A huge BigDecimal could occupies large amount of memory, > and consumes a lot of computational time.  It is fundamental, but > bothering sometimes. FWIW, the Java BigDecimal "to_f"/"to_i" behavior runs forever too, so they've never opted to add a safeguard all these year. JRuby may just defer to that behavior, but I did add an exponent check in to_f for now. - Charlie