[前][次][番号順一覧][スレッド一覧]

ruby-changes:20641

From: mrkn <ko1@a...>
Date: Wed, 27 Jul 2011 01:28:04 +0900 (JST)
Subject: [ruby-changes:20641] mrkn:r32689 (ruby_1_9_3): * NEWS: add changes of bigdecimal and bigdecimal/util.

mrkn	2011-07-27 01:27:51 +0900 (Wed, 27 Jul 2011)

  New Revision: 32689

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=32689

  Log:
    * NEWS: add changes of bigdecimal and bigdecimal/util.

  Modified files:
    branches/ruby_1_9_3/ChangeLog
    branches/ruby_1_9_3/NEWS

Index: ruby_1_9_3/ChangeLog
===================================================================
--- ruby_1_9_3/ChangeLog	(revision 32688)
+++ ruby_1_9_3/ChangeLog	(revision 32689)
@@ -1,3 +1,7 @@
+Sat Jul 27 01:26:00 2011  Kenta Murata  <mrkn@m...>
+
+	* NEWS: add changes of bigdecimal and bigdecimal/util.
+
 Wed Jul 27 01:13:00 2011  Kenta Murata  <mrkn@m...>
 
 	* ext/bigdecimal/lib/bigdecimal/util.rb (Rational#to_d):
Index: ruby_1_9_3/NEWS
===================================================================
--- ruby_1_9_3/NEWS	(revision 32688)
+++ ruby_1_9_3/NEWS	(revision 32689)
@@ -102,16 +102,28 @@
       the platform don't support supplementary groups concept.
 
 * bigdecimal
+
   * BigDecimal#power and BigDecimal#** support non-integral exponent.
 
   * Kernel.BigDecimal and BigDecimal.new now accept instances of Integer,
-    Rational, and Float.  If you pass a Rational or a Float to them, you must
-    specify the precision to produce the digits of a BigDecimal.
+    Rational, Float, and BigDecimal.  If you pass a Rational or a Float to
+    them, you must specify the precision to produce the digits of a BigDecimal.
 
   * The behavior of BigDecimal#coerce with a Rational is changed.  It uses
     the precision of the receiver BigDecimal to produce the digits of a
     BigDecimal from the given Rational.
 
+* bigdecimal/util
+
+  * BigDecimal#to_d and Integer#to_d are added.
+
+  * Float#to_d accepts a precision.
+
+  * Rational#to_d raises ArgumentError when passing zero or negative
+    precision.
+
+  * Rational#to_d requires a precision.  It is an incompatible change.
+
 * date
 
   * Accepts flonum explicitly with limitations.
@@ -301,4 +313,6 @@
 
 === Compatibility issues (excluding feature bug fixes)
 
-  None
+  * Rational#to_d
+
+    See above.

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]