Project

General

Profile

« Previous | Next » 

Revision d7058e10

Added by Kenta Murata over 14 years ago

  • ext/bigdecimal/bigdecimal.c (BigDecimal_coerce): support coerce with a
    Rational. The precision used for instantiate a BigDecimal from the
    given Rational is obtained from the receiver BigDecimal.
  • test/bigdecimal/test_bigdecimal.rb (test_coerce): add a test for the
    above change.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31868 b2dd03c8-39d4-4d8f-98ff-823fe69b080e