Import bigdecimal-1.4.0
* https://github.com/ruby/bigdecimal/compare/v1.4.0.pre.20181220a..v1.4.0 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66516 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
cd416f810e
commit
8754b2391b
@ -2668,7 +2668,7 @@ BigDecimal_new(int argc, VALUE *argv)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* call-seq:
|
/* call-seq:
|
||||||
* BigDecimal(initial, digits)
|
* BigDecimal(initial, digits, exception: true)
|
||||||
*
|
*
|
||||||
* Create a new BigDecimal object.
|
* Create a new BigDecimal object.
|
||||||
*
|
*
|
||||||
@ -2682,8 +2682,13 @@ BigDecimal_new(int argc, VALUE *argv)
|
|||||||
* the number of significant digits is determined from the initial
|
* the number of significant digits is determined from the initial
|
||||||
* value.
|
* value.
|
||||||
*
|
*
|
||||||
* The actual number of significant digits used in computation is usually
|
* The actual number of significant digits used in computation is
|
||||||
* larger than the specified number.
|
* usually larger than the specified number.
|
||||||
|
*
|
||||||
|
* exception:: Whether an exception should be raised on invalid arguments.
|
||||||
|
* +true+ by default, if passed +false+, just returns +nil+
|
||||||
|
* for invalid.
|
||||||
|
*
|
||||||
*
|
*
|
||||||
* ==== Exceptions
|
* ==== Exceptions
|
||||||
*
|
*
|
||||||
@ -3955,9 +3960,6 @@ VP_EXPORT size_t
|
|||||||
VpInit(BDIGIT BaseVal)
|
VpInit(BDIGIT BaseVal)
|
||||||
{
|
{
|
||||||
/* Setup +/- Inf NaN -0 */
|
/* Setup +/- Inf NaN -0 */
|
||||||
VpGetDoubleNaN();
|
|
||||||
VpGetDoublePosInf();
|
|
||||||
VpGetDoubleNegInf();
|
|
||||||
VpGetDoubleNegZero();
|
VpGetDoubleNegZero();
|
||||||
|
|
||||||
/* Allocates Vp constants. */
|
/* Allocates Vp constants. */
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
# coding: utf-8
|
# coding: utf-8
|
||||||
|
|
||||||
bigdecimal_version = '1.4.0.pre.20181220a'
|
bigdecimal_version = '1.4.0'
|
||||||
|
|
||||||
Gem::Specification.new do |s|
|
Gem::Specification.new do |s|
|
||||||
s.name = "bigdecimal"
|
s.name = "bigdecimal"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user