exponential-number 1.3.7 → 1.3.8

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.
@@ -84,7 +84,7 @@ class ExponentNumber {
84
84
  }
85
85
  return this;
86
86
  }
87
- if (this.value === otherNumber.value) {
87
+ if (this.value <= otherNumber.value) {
88
88
  this.resetValue();
89
89
  return this;
90
90
  }
@@ -51,7 +51,7 @@ function minusEqualExponentLevelNumber(first, second) {
51
51
  return new exponent_number_class_1.ExponentNumber(0, 0);
52
52
  }
53
53
  if (first.value - second.value > const_1.VALUE_EXPONENT_DIFFERENCE_LIMIT) {
54
- return first.value - second.value < 0 ? first.copy() : second.copy();
54
+ return first.copy();
55
55
  }
56
56
  return new exponent_number_class_1.ExponentNumber(1, first.value + Math.log10(1 - Math.pow(10, second.value - first.value)));
57
57
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "exponential-number",
3
- "version": "1.3.7",
3
+ "version": "1.3.8",
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",