From: Aldric Giacomoni Date: 2009-11-19T03:14:22+09:00 Subject: Re: Exact (LISP-ish) calculations in Ruby? David Masover wrote: > > irb(main):002:0> Rational(3) / 4 > => (3/4) > irb(main):003:0> Rational(3) / 4 / 12 > => (1/16) > > I'm not sure about the rest of it, though it makes me wish I'd used Lisp > for a recent project. In all fairness, I just fired up SLIME to check, and LISP's (sqrt 2) does come out to be an approximation, so I guess I want something cool like the HP-48 and HP-49's factoring power.. -- Posted via http://www.ruby-forum.com/.