Comparing version 6.2.1 to 6.2.2
/* | ||
* big.js v6.2.1 | ||
* big.js v6.2.2 | ||
* A small, fast, easy-to-use library for arbitrary-precision decimal arithmetic. | ||
* Copyright (c) 2022 Michael Mclaughlin | ||
* Copyright (c) 2024 Michael Mclaughlin | ||
* https://github.com/MikeMcl/big.js/LICENCE.md | ||
@@ -809,3 +809,3 @@ */ | ||
// Estimate. | ||
s = Math.sqrt(x + ''); | ||
s = Math.sqrt(+stringify(x, true, true)); | ||
@@ -975,3 +975,3 @@ // Math.sqrt underflow/overflow? | ||
P.toNumber = function () { | ||
var n = Number(stringify(this, true, true)); | ||
var n = +stringify(this, true, true); | ||
if (this.constructor.strict === true && !this.eq(n.toString())) { | ||
@@ -978,0 +978,0 @@ throw Error(NAME + 'Imprecise conversion'); |
The MIT License (MIT) | ||
===================== | ||
Copyright © `<2022>` `Michael Mclaughlin` | ||
Copyright © `<2024>` `Michael Mclaughlin` | ||
@@ -6,0 +6,0 @@ Permission is hereby granted, free of charge, to any person |
{ | ||
"name": "big.js", | ||
"description": "A small, fast, easy-to-use library for arbitrary-precision decimal arithmetic", | ||
"version": "6.2.1", | ||
"version": "6.2.2", | ||
"keywords": [ | ||
@@ -6,0 +6,0 @@ "arbitrary", |
@@ -43,3 +43,3 @@ # big.js | ||
```html | ||
<script src='https://cdn.jsdelivr.net/npm/big.js@6.2.1/big.min.js'></script> | ||
<script src='https://cdn.jsdelivr.net/npm/big.js@6.2.2/big.min.js'></script> | ||
``` | ||
@@ -68,4 +68,4 @@ | ||
```javascript | ||
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'; | ||
import Big from 'https://raw.githubusercontent.com/mikemcl/big.js/v6.2.2/big.mjs'; | ||
import Big from 'https://unpkg.com/big.js@6.2.2/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
58665