From: Rick DeNatale Date: 2007-10-15T06:15:31+09:00 Subject: Re: Bug: Numeric#divmod calculates wrongly On 10/14/07, M. Edward (Ed) Borasky wrote: > Eric Hodel wrote: > > On Oct 14, 2007, at 03:44 , M. Edward (Ed) Borasky wrote: > > > >> And Eric has it broken on PowerPC Macs for both Ruby 1.8.6 and Ruby 1.9.0 > >> > >> Eric, what compiler made the Ruby interpreters on your PowerPC? I don't believe that anyone has brought up the intel Macs as yet, but I get the same results as the OP on my MacBook: ruby 1.8.6 (2007-03-13 patchlevel 0) [i686-darwin8.10.2] x=[0.58, 0.59, 0.63, 0.66, 0.67] y=1/12.0 x/y --- 6.96 7.08 7.56 7.92 8.04 x.divmod(y) ----------- [6, 0.08] [6, 0.00666666666666667] [6, 0.0466666666666667] [6, 0.0766666666666667] [8, 0.00333333333333341] I've already added this as a comment to the trac report. -- Rick DeNatale My blog on Ruby http://talklikeaduck.denhaven2.com/