diff options
author | mrkn <mrkn@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-07-26 16:27:51 +0000 |
---|---|---|
committer | mrkn <mrkn@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-07-26 16:27:51 +0000 |
commit | 04749b1250aee879d74d15a2ffc4175f27339af5 (patch) | |
tree | 727c908fe1b1dce2537e65a7bef821877737c5fa /NEWS | |
parent | 2621ba04cbecb4cd22772d1a76d91beddfcc8878 (diff) |
* NEWS: add changes of bigdecimal and bigdecimal/util.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@32689 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'NEWS')
-rw-r--r-- | NEWS | 20 |
1 files changed, 17 insertions, 3 deletions
@@ -102,16 +102,28 @@ with all sufficient information, see the ChangeLog file. 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 @@ with all sufficient information, see the ChangeLog file. === Compatibility issues (excluding feature bug fixes) - None + * Rational#to_d + + See above. |