Comparing version 6.2.0 to 6.2.1
/* | ||
* big.js v6.2.0 | ||
* big.js v6.2.1 | ||
* A small, fast, easy-to-use library for arbitrary-precision decimal arithmetic. | ||
@@ -233,3 +233,3 @@ * Copyright (c) 2022 Michael Mclaughlin | ||
// Remove any digits after the required precision. | ||
xc.length = sd--; | ||
xc.length = sd; | ||
@@ -240,7 +240,8 @@ // Round up? | ||
// Rounding up may mean the previous digit has to be rounded up. | ||
for (; ++xc[sd] > 9;) { | ||
for (; ++xc[--sd] > 9;) { | ||
xc[sd] = 0; | ||
if (!sd--) { | ||
if (sd === 0) { | ||
++x.e; | ||
xc.unshift(1); | ||
break; | ||
} | ||
@@ -247,0 +248,0 @@ } |
{ | ||
"name": "big.js", | ||
"description": "A small, fast, easy-to-use library for arbitrary-precision decimal arithmetic", | ||
"version": "6.2.0", | ||
"version": "6.2.1", | ||
"keywords": [ | ||
@@ -6,0 +6,0 @@ "arbitrary", |
@@ -43,3 +43,3 @@ # big.js | ||
```html | ||
<script src='https://cdn.jsdelivr.net/npm/big.js@6.2.0/big.min.js'></script> | ||
<script src='https://cdn.jsdelivr.net/npm/big.js@6.2.1/big.min.js'></script> | ||
``` | ||
@@ -68,4 +68,4 @@ | ||
```javascript | ||
import Big from 'https://raw.githubusercontent.com/mikemcl/big.js/v6.2.0/big.mjs'; | ||
import Big from 'https://unpkg.com/big.js@6.2.0/big.mjs'; | ||
import Big from 'https://raw.githubusercontent.com/mikemcl/big.js/v6.2.1/big.mjs'; | ||
import Big from 'https://unpkg.com/big.js@6.2.1/big.mjs'; | ||
``` | ||
@@ -72,0 +72,0 @@ |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
58641
1645