ruby-changes:19838
From: mrkn <ko1@a...>
Date: Wed, 1 Jun 2011 12:37:09 +0900 (JST)
Subject: [ruby-changes:19838] mrkn:r31884 (trunk): * NEWS: add new features of bigdecimal.
mrkn 2011-06-01 12:37:02 +0900 (Wed, 01 Jun 2011) New Revision: 31884 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=31884 Log: * NEWS: add new features of bigdecimal. * ChangeLog: 2011-06-01 is Wednesday. Modified files: trunk/ChangeLog trunk/NEWS Index: ChangeLog =================================================================== --- ChangeLog (revision 31883) +++ ChangeLog (revision 31884) @@ -1,3 +1,7 @@ +Wed Jun 1 12:34:00 2011 Kenta Murata <mrkn@m...> + + * NEWS: add new features of bigdecimal. + Wed Jun 1 09:41:14 2011 Eric Hodel <drbrain@s...> * lib/cgi/util.rb: Improve documentation. Patch by Kuba Fietkiewicz. @@ -49,7 +53,7 @@ * ext/bigdecimal/bigdecimal.c (GetVpValueWithPrec): remove unused variable. -Tue Jun 1 00:32:00 2011 Kenta Murata <mrkn@m...> +Wed Jun 1 00:32:00 2011 Kenta Murata <mrkn@m...> * ext/bigdecimal/bigdecimal.c (GetVpValueWithPrec): support instantiation from a Float through Rational. @@ -61,7 +65,7 @@ * test/bigdecimal/test_bigdecimal.rb (test_new_with_float): ditto. -Tue Jun 1 00:07:00 2011 Kenta Murata <mrkn@m...> +Wed Jun 1 00:07:00 2011 Kenta Murata <mrkn@m...> * ext/bigdecimal/bigdecimal.c (BigDecimal_coerce): support coerce with a Rational. The precision used for instantiate a BigDecimal from the Index: NEWS =================================================================== --- NEWS (revision 31883) +++ NEWS (revision 31884) @@ -83,7 +83,16 @@ * Process * Process#maxgroups and Process#maxgroups= now raise NotImplementedError if the platform don't support supplementary groups concept. - + + * bigdecimal + * 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. + + * 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. + * io/console * new methods: * IO#noecho {|io| } -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/