v3.1.2
This commit is contained in:
parent
c1784169d4
commit
2ccc3a7d28
|
@ -243,6 +243,10 @@ See [LICENCE](https://github.com/MikeMcl/bignumber.js/blob/master/LICENCE).
|
|||
|
||||
## Change Log
|
||||
|
||||
#### 3.1.2
|
||||
* 08/01/2017
|
||||
* Minor documentation edit.
|
||||
|
||||
#### 3.1.1
|
||||
* 08/01/2017
|
||||
* Uncomment `isBigNumber` tests.
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
/*! bignumber.js v3.1.1 https://github.com/MikeMcl/bignumber.js/LICENCE */
|
||||
/*! bignumber.js v3.1.2 https://github.com/MikeMcl/bignumber.js/LICENCE */
|
||||
|
||||
;(function (globalObj) {
|
||||
'use strict';
|
||||
|
||||
/*
|
||||
bignumber.js v3.1.1
|
||||
bignumber.js v3.1.2
|
||||
A JavaScript library for arbitrary-precision arithmetic.
|
||||
https://github.com/MikeMcl/bignumber.js
|
||||
Copyright (c) 2016 Michael Mclaughlin <M8ch88l@gmail.com>
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"name": "bignumber.js",
|
||||
"main": "bignumber.js",
|
||||
"version": "3.1.1",
|
||||
"version": "3.1.2",
|
||||
"homepage": "https://github.com/MikeMcl/bignumber.js",
|
||||
"authors": [
|
||||
"Michael Mclaughlin <M8ch88l@gmail.com>"
|
||||
|
|
42
doc/API.html
42
doc/API.html
|
@ -671,6 +671,27 @@ obj.RANGE // [-500, 500]</pre>
|
|||
|
||||
|
||||
|
||||
<h5 id="is-bignumber">
|
||||
isBigNumber<code class='inset'>.isBigNumber(n) <i>⇒ boolean</i></code>
|
||||
</h5>
|
||||
<p><code>n</code>: <i>any</i></p>
|
||||
<p>
|
||||
Returns <code>true</code> if <code>n</code> is a BigNumber instance, otherwise returns
|
||||
<code>false</code>.
|
||||
</p>
|
||||
<pre>
|
||||
x = 42
|
||||
y = new BigNumber(x)
|
||||
BigNumber.isBigNumber(x) // false
|
||||
BigNumber.isBigNumber(y) // true
|
||||
|
||||
BN = BigNumber.another();
|
||||
z = new BN(x)
|
||||
|
||||
BigNumber.isBigNumber(z) // true</pre>
|
||||
|
||||
|
||||
|
||||
<h5 id="max">
|
||||
max<code class='inset'>.max([arg1 [, arg2, ...]]) <i>⇒ BigNumber</i></code>
|
||||
</h5>
|
||||
|
@ -745,27 +766,6 @@ BigNumber.random(20) // '0.78193327636914089009'</pre>
|
|||
|
||||
|
||||
|
||||
<h5 id="is-bignumber">
|
||||
isBigNumber<code class='inset'>.isBigNumber(n) <i>⇒ boolean</i></code>
|
||||
</h5>
|
||||
<p><code>n</code>: <i>any</i></p>
|
||||
<p>
|
||||
Returns <code>true</code> if <code>n</code> is a BigNumber instance, otherwise returns
|
||||
<code>false</code>.
|
||||
</p>
|
||||
<pre>
|
||||
x = 42
|
||||
y = new BigNumber(x)
|
||||
BigNumber.isBigNumber(x) // false
|
||||
BigNumber.isBigNumber(y) // true
|
||||
|
||||
BN = BigNumber.another();
|
||||
z = new BN(x)
|
||||
|
||||
BigNumber.isBigNumber(z) // true</pre>
|
||||
|
||||
|
||||
|
||||
<h4 id="constructor-properties">Properties</h4>
|
||||
<p>
|
||||
The library's enumerated rounding modes are stored as properties of the constructor.<br />
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"name": "bignumber.js",
|
||||
"description": "A library for arbitrary-precision decimal and non-decimal arithmetic",
|
||||
"version": "3.1.1",
|
||||
"version": "3.1.2",
|
||||
"keywords": [
|
||||
"arbitrary",
|
||||
"precision",
|
||||
|
@ -31,6 +31,6 @@
|
|||
"license": "MIT",
|
||||
"scripts": {
|
||||
"test": "node ./test/every-test.js",
|
||||
"build": "uglifyjs bignumber.js --source-map bignumber.js.map -c -m -o bignumber.min.js --preamble \"/* bignumber.js v3.1.1 https://github.com/MikeMcl/bignumber.js/LICENCE */\""
|
||||
"build": "uglifyjs bignumber.js --source-map bignumber.js.map -c -m -o bignumber.min.js --preamble \"/* bignumber.js v3.1.2 https://github.com/MikeMcl/bignumber.js/LICENCE */\""
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue