Bug #2129: Rational can't be coerced into BigDecimal (TypeError)
http://redmine.ruby-lang.org/issues/show/2129

Author: Takehiro Kubo
Status: Open, Priority: Normal
ruby -v: ruby 1.9.2dev (2009-09-20 trunk 25012) [x86_64-linux]

Rational + BigDecimal makes a Rational as follows:

  $ ruby -rbigdecimal -e "puts Rational(1) + BigDecimal.new('1')"
  2/1

But BigDecimal + Rationl raises a TypeError as follows:

  $ ruby -rbigdecimal -e "puts BigDecimal.new('1') + Rational(1)"
  -e:1:in `+': Rational can't be coerced into BigDecimal (TypeError)
  	from -e:1:in `<main>'


----------------------------------------
http://redmine.ruby-lang.org