Actions
Bug #1455
closedcompatability of rational and bigdecimal
Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
ruby 1.9.1p0 (2009-01-30 revision 21907) [i686-linux]
Backport:
Description
=begin
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.
=end
Actions
Like0
Like0