exponential-number 1.3.4 → 1.3.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -148,8 +148,8 @@ class ExponentNumber {
|
|
|
148
148
|
return this.root(new ExponentNumber(0, 2));
|
|
149
149
|
}
|
|
150
150
|
log(base) {
|
|
151
|
-
const result = new ExponentNumber(this.exponentFactor, Math.log10(this.value));
|
|
152
|
-
result.divide(new ExponentNumber(base.exponentFactor, Math.log10(base.value)));
|
|
151
|
+
const result = new ExponentNumber(this.exponentFactor, Math.log10(this.value + 1));
|
|
152
|
+
result.divide(new ExponentNumber(base.exponentFactor, Math.log10(base.value + 1)));
|
|
153
153
|
this.applyNewValues(result);
|
|
154
154
|
this.normalize();
|
|
155
155
|
return this;
|
package/package.json
CHANGED