Skip to content

Commit f7fe392

Browse files
committed
v5.0.2
1 parent 271ebed commit f7fe392

File tree

7 files changed

+21
-27
lines changed

7 files changed

+21
-27
lines changed

README.md

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,6 @@ The little sister to [bignumber.js](https://github.com/MikeMcl/bignumber.js/) an
2121

2222
$ npm install --save big.js
2323

24-
or
25-
26-
$ yarn add big.js
27-
2824
## Use
2925

3026
The library is the single JavaScript file *big.js* (or *big.min.js*, which is *big.js* minified).
@@ -41,9 +37,7 @@ If using an ES6 transpiler, or Node.js with the [`--experimental-modules`](https
4137

4238
import Big from './big';
4339

44-
<br />
45-
*In all examples below, `var`, semicolons and `toString` calls are not shown. \
46-
If a commented-out value is in quotes it means `toString` has been called on the preceding expression.*
40+
*In all examples below, `var`, semicolons and `toString` calls are not shown. If a commented-out value is in quotes it means `toString` has been called on the preceding expression.*
4741

4842
The library exports a single function, `Big`, the constructor of Big number instances.
4943
It accepts a value of type number, string or Big number object.
@@ -113,15 +107,15 @@ To test a single method
113107

114108
$ node test/toFixed
115109

116-
For the browser, see *single-test.html* and [*every-test.html*](test/browser/every-test.html) in the *test/browser* directory.
110+
For the browser, see *single-test.html* and *every-test.html* in the *test/browser* directory.
117111

118-
[*big-vs-number.html*](test/browser/big-vs-number.html) is a simple application that enables some of the methods of big.js to be compared with those of JavaScript's Number type.
112+
*big-vs-number.html* is a simple application that enables some of the methods of big.js to be compared with those of JavaScript's Number type.
119113

120114
## Performance
121115

122116
The *perf* directory contains two old applications and a *lib* directory containing the BigDecimal libraries used by both.
123117

124-
[*big-vs-bigdecimal.html*](perf/big-vs-bigdecimal.html) tests the performance of big.js against the JavaScript translations of two versions of BigDecimal, its use should be more or less self-explanatory.
118+
*big-vs-bigdecimal.html* tests the performance of big.js against the JavaScript translations of two versions of BigDecimal, its use should be more or less self-explanatory.
125119

126120
* [GWT: java.math.BigDecimal](https://github.com/iriscouch/bigdecimal.js)
127121
* [ICU4J: com.ibm.icu.math.BigDecimal](https://github.com/dtrebbien/BigDecimal.js)
@@ -169,4 +163,4 @@ Open an issue, or email <a href="mailto:M8ch88l@gmail.com">Michael</a>
169163

170164
## Licence
171165

172-
[MIT](LICENSE)
166+
[MIT](LICENCE)

big.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* big.js v5.0.1
2+
* big.js v5.0.2
33
* A small, fast, easy-to-use library for arbitrary-precision decimal arithmetic.
44
* Copyright (c) 2017 Michael Mclaughlin <M8ch88l@gmail.com>
55
* https://github.com/MikeMcl/big.js/LICENCE
@@ -71,7 +71,7 @@
7171
* Create and return a Big constructor.
7272
*
7373
*/
74-
function factory() {
74+
function _Big_() {
7575

7676
/*
7777
* The Big constructor and exported function.
@@ -83,7 +83,7 @@
8383
var x = this;
8484

8585
// Enable constructor usage without new.
86-
if (!(x instanceof Big)) return n === UNDEFINED ? factory() : new Big(n);
86+
if (!(x instanceof Big)) return n === UNDEFINED ? _Big_() : new Big(n);
8787

8888
// Duplicate.
8989
if (n instanceof Big) {
@@ -106,7 +106,7 @@
106106
Big.RM = RM;
107107
Big.NE = NE;
108108
Big.PE = PE;
109-
Big.version = '5.0.1';
109+
Big.version = '5.0.2';
110110

111111
return Big;
112112
}
@@ -913,7 +913,7 @@
913913
// Export
914914

915915

916-
Big = factory();
916+
Big = _Big_();
917917

918918
Big['default'] = Big.Big = Big;
919919

big.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

big.mjs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* big.js v5.0.1
2+
* big.js v5.0.2
33
* A small, fast, easy-to-use library for arbitrary-precision decimal arithmetic.
44
* Copyright (c) 2017 Michael Mclaughlin <M8ch88l@gmail.com>
55
* https://github.com/MikeMcl/big.js/LICENCE
@@ -69,7 +69,7 @@ var Big,
6969
* Create and return a Big constructor.
7070
*
7171
*/
72-
function factory() {
72+
function _Big_() {
7373

7474
/*
7575
* The Big constructor and exported function.
@@ -81,7 +81,7 @@ function factory() {
8181
var x = this;
8282

8383
// Enable constructor usage without new.
84-
if (!(x instanceof Big)) return n === UNDEFINED ? factory() : new Big(n);
84+
if (!(x instanceof Big)) return n === UNDEFINED ? _Big_() : new Big(n);
8585

8686
// Duplicate.
8787
if (n instanceof Big) {
@@ -104,7 +104,7 @@ function factory() {
104104
Big.RM = RM;
105105
Big.NE = NE;
106106
Big.PE = PE;
107-
Big.version = '5.0.1';
107+
Big.version = '5.0.2';
108108

109109
return Big;
110110
}
@@ -911,7 +911,7 @@ P.valueOf = P.toJSON = function () {
911911
// Export
912912

913913

914-
Big = factory();
914+
Big = _Big_();
915915

916916
Big.Big = Big;
917917

0 commit comments

Comments
 (0)