Project

General

Profile

Actions

Bug #1455

closed

compatability of rational and bigdecimal

Added by bk1 (Karl Brodowsky) almost 15 years ago. Updated almost 13 years ago.

Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
ruby 1.9.1p0 (2009-01-30 revision 21907) [i686-linux]
Backport:
[ruby-core:23416]

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 #1

Updated by yugui (Yuki Sonoda) almost 15 years ago

  • Status changed from Open to Closed

=begin
applied in r23389.
=end

Actions

Also available in: Atom PDF

Like0
Like0