From: Karl Brodowsky Date: 2009-05-10T21:36:07+09:00 Subject: [ruby-core:23416] [Bug #1455] compatability of rational and bigdecimal Bug #1455: compatability of rational and bigdecimal http://redmine.ruby-lang.org/issues/show/1455 Author: Karl Brodowsky Status: Open, Priority: Normal Category: core ruby -v: ruby 1.9.1p0 (2009-01-30 revision 21907) [i686-linux] require "rational" require "bigdecimal" a=BigDecimal("3.2") b=Rational(3,4) b/a --> TypeError: BigDecimal can't be coerced into Rational from (irb):5:in `/' from (irb):5 from /usr/local/bin/irb:12:in `
' $ ruby --version --> ruby 1.9.1p0 (2009-01-30 revision 21907) [i686-linux] $ irb --version --> irb 0.9.5(05/04/13) The same error occurs in Ruby 1.8 and JRuby 1.2. It has been reported with number 1454 for Ruby 1.8. ---------------------------------------- http://redmine.ruby-lang.org