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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "exponential-number",
3
- "version": "1.3.4",
3
+ "version": "1.3.5",
4
4
  "description": "Small package with class to work with big numbers. This class allows to work with 1e...(1.8e308)...e1e100",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",