1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* NEWS: add new features of bigdecimal.

* ChangeLog: 2011-06-01 is Wednesday.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31884 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
mrkn 2011-06-01 03:37:02 +00:00
parent 38de163f1e
commit 4752539e3f
2 changed files with 16 additions and 3 deletions

View file

@ -1,3 +1,7 @@
Wed Jun 1 12:34:00 2011 Kenta Murata <mrkn@mrkn.jp>
* NEWS: add new features of bigdecimal.
Wed Jun 1 09:41:14 2011 Eric Hodel <drbrain@segment7.net>
* lib/cgi/util.rb: Improve documentation. Patch by Kuba Fietkiewicz.
@ -49,7 +53,7 @@ Wed Jun 1 00:34:04 2011 CHIKANAGA Tomoyuki <nagachika00@gmail.com>
* ext/bigdecimal/bigdecimal.c (GetVpValueWithPrec): remove unused
variable.
Tue Jun 1 00:32:00 2011 Kenta Murata <mrkn@mrkn.jp>
Wed Jun 1 00:32:00 2011 Kenta Murata <mrkn@mrkn.jp>
* ext/bigdecimal/bigdecimal.c (GetVpValueWithPrec): support instantiation from
a Float through Rational.
@ -61,7 +65,7 @@ Tue Jun 1 00:32:00 2011 Kenta Murata <mrkn@mrkn.jp>
* test/bigdecimal/test_bigdecimal.rb (test_new_with_float): ditto.
Tue Jun 1 00:07:00 2011 Kenta Murata <mrkn@mrkn.jp>
Wed Jun 1 00:07:00 2011 Kenta Murata <mrkn@mrkn.jp>
* ext/bigdecimal/bigdecimal.c (BigDecimal_coerce): support coerce with a
Rational. The precision used for instantiate a BigDecimal from the

11
NEWS
View file

@ -83,7 +83,16 @@ with all sufficient information, see the ChangeLog file.
* 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| }