to infinite. backported from 1.9.
* ext/bigdecimal/bigdecimal.c (VpIsRoundMode): rounding mode
condition check updated. backported from 1.9.
* ext/bigdecimal/bigdecimal.c (VpPower): should handle NaN and
Inf. backported from 1.9.
* ext/bigdecimal/bigdecimal.c (BigDecimal_DoDivmod): divmod should
raise ZeroDivisionError. backported from 1.9.
* ext/bigdecimal/bigdecimal.c (BigDecimal_mode): should check
exception for VP_EXCEPTION_UNDERFLOW and VP_EXCEPTION_ZERODIVIDE.
backported from 1.9.
* ext/bigdecimal/bigdecimal.c (VpException): ditto.
* ext/bigdecimal/bigdecimal.h (VP_EXCEPTION_ZERODIVIDE): new error
code. backported from 1.9.
* ext/bigdecimal/bigdecimal.c (BigDecimal_div2, BigDecimal_round,
BigDecimal_truncate, BigDecimal_floor, BigDecimal_ceil): eagerly convert
bigdecimal to integer. backported from 1.9.
* ext/bigdecimal/bigdecimal.c (VpMult): free internal Real.
backported from 1.9.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@23664 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
message for #peeraddr. a patch from Sam Roberts
<sroberts at uniserve.com>. [ruby-core:10366]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@11777 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
prototypes, removal of a useless method `!=', and document
updates.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@11674 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
ext/openssl/ossl_pkey_rsa.c, ext/bigdecimal/bigdecimal.h: must
not use C++ or C99 style comment yet. (ruby-bugs:PR#1184)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4594 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Spec for div changed.
add,sub,mult,div now can specify exact digits number.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4153 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
As discussed in ruby-dev ML:
E,PI, etc are disabled.
BigDecimal op String disabled.
to_f changed.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4091 b2dd03c8-39d4-4d8f-98ff-823fe69b080e