pimath 0.0.39 → 0.0.40

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.
package/dist/pi.js CHANGED
@@ -3681,7 +3681,7 @@ class Fraction {
3681
3681
  return isNaN(this._numerator);
3682
3682
  };
3683
3683
  this.isInfinity = () => {
3684
- return this._numerator === Infinity;
3684
+ return Math.abs(this._numerator) === Infinity;
3685
3685
  };
3686
3686
  this.isFinite = () => {
3687
3687
  return !this.isInfinity();