From: Stefan Rusterholz Date: 2007-11-18T07:53:29+09:00 Subject: Re: How to avoid Fixnum rounding error Jari Williamsson wrote: > Which is the best approach to avoid division rounding errors when > performing integer division with a Fixnum? Is there any built-in method > for this? > > Best regards, > > Jari Williamsson Since nobody brought it up so far: 5.quo(2) # => 2.5, If you required Rational it will be Rational(5,2). Regards, Stefan -- Posted via http://www.ruby-forum.com/.