update to state of the art
This commit is contained in:
6
node_modules/decimal.js/decimal.mjs
generated
vendored
6
node_modules/decimal.js/decimal.mjs
generated
vendored
@@ -1,8 +1,8 @@
|
||||
/*
|
||||
* decimal.js v10.2.0
|
||||
* decimal.js v10.2.1
|
||||
* An arbitrary-precision Decimal type for JavaScript.
|
||||
* https://github.com/MikeMcl/decimal.js
|
||||
* Copyright (c) 2019 Michael Mclaughlin <M8ch88l@gmail.com>
|
||||
* Copyright (c) 2020 Michael Mclaughlin <M8ch88l@gmail.com>
|
||||
* MIT Licence
|
||||
*/
|
||||
|
||||
@@ -1724,7 +1724,7 @@ P.squareRoot = P.sqrt = function () {
|
||||
e = mathfloor((e + 1) / 2) - (e < 0 || e % 2);
|
||||
|
||||
if (s == 1 / 0) {
|
||||
n = '1e' + e;
|
||||
n = '5e' + e;
|
||||
} else {
|
||||
n = s.toExponential();
|
||||
n = n.slice(0, n.indexOf('e') + 1) + e;
|
||||
|
Reference in New Issue
Block a user