Comparing version 6.0.1 to 6.0.2
25
big.js
@@ -922,7 +922,11 @@ /* | ||
/* | ||
* Return a string representing the value of this Big in exponential notation. | ||
* Include the sign for negative zero. | ||
* Return a string representing the value of this Big. | ||
* Return exponential notation if this Big has a positive exponent equal to or greater than | ||
* Big.PE, or a negative exponent equal to or less than Big.NE. | ||
* Omit the sign for negative zero. | ||
*/ | ||
P.toJSON = function () { | ||
return stringify(this, true, true); | ||
P.toJSON = P.toString = function () { | ||
var x = this, | ||
Big = x.constructor; | ||
return stringify(x, x.e <= Big.NE || x.e >= Big.PE, !!x.c[0]); | ||
}; | ||
@@ -973,15 +977,2 @@ | ||
* Big.PE, or a negative exponent equal to or less than Big.NE. | ||
* Omit the sign for negative zero. | ||
*/ | ||
P.toString = function () { | ||
var x = this, | ||
Big = x.constructor; | ||
return stringify(x, x.e <= Big.NE || x.e >= Big.PE, !!x.c[0]); | ||
}; | ||
/* | ||
* Return a string representing the value of this Big. | ||
* Return exponential notation if this Big has a positive exponent equal to or greater than | ||
* Big.PE, or a negative exponent equal to or less than Big.NE. | ||
* Include the sign for negative zero. | ||
@@ -988,0 +979,0 @@ */ |
@@ -0,1 +1,6 @@ | ||
#### 6.0.2 | ||
* 31/10/20 | ||
* #147 Change `toJSON` to be an alias of `toString`. | ||
#### 6.0.1 | ||
@@ -2,0 +7,0 @@ |
{ | ||
"name": "big.js", | ||
"description": "A small, fast, easy-to-use library for arbitrary-precision decimal arithmetic", | ||
"version": "6.0.1", | ||
"version": "6.0.2", | ||
"keywords": [ | ||
@@ -6,0 +6,0 @@ "arbitrary", |
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
60841
1577