Project

General

Profile

« Previous | Next » 

Revision 678b6820

Added by Kenta Murata about 14 years ago

  • ext/bigdecimal/bigdecimal.c (GetVpValueWithPrec): support instantiation from
    a Float through Rational.
  • ext/bigdecimal/bigdecimal.c (BigDecimal_new): ditto.
  • test/bigdecimal/test_bigdecimal.rb (test_global_new_float): add a test for
    the above changes.
  • test/bigdecimal/test_bigdecimal.rb (test_new_with_float): ditto.

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