From: "M. Edward (Ed) Borasky" Date: 2007-11-18T10:35:16+09:00 Subject: Re: How to avoid Fixnum rounding error Stefan Rusterholz wrote: > 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 I don't really like the "Rational(5,2)" notation when "Mathn" will give you "5/2".