From: Samuel Lown Date: 2009-05-06T19:08:37+09:00 Subject: Re: Unexpected BigDecimal rounding issue Rick Denatale wrote: > On Tue, May 5, 2009 at 9:01 PM, Samuel Lown wrote: >> >> Can anyone offer an explanation? > > BigDecimal is still a kind of float, albeit a decimal float rather > than a binary float. > Many thanks Nobuyoshi and Rick, that makes complete sense now. I guess the safest rule of thumb is if you're doing comparisons for humans, use humanized numbers (i.e. integers :-) Cheers, sam -- Posted via http://www.ruby-forum.com/.