pimath 0.0.83 → 0.0.84

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
@@ -6574,7 +6574,7 @@ class Numeric {
6574
6574
  }
6575
6575
  return triplets;
6576
6576
  }
6577
- static numberCorrection(value) {
6577
+ static numberCorrection(value, epsilon = 0.00000000000005, number_of_digits = 6) {
6578
6578
  // Must modify the number if it's like:
6579
6579
  // a: 3.0000000000000003
6580
6580
  // b: 3.9999999999999994
@@ -6589,7 +6589,6 @@ class Numeric {
6589
6589
  decimal = decimal.split('.')[1];
6590
6590
  return decimal.substring(0, decimal.length - 2);
6591
6591
  }
6592
- const epsilon = 0.00000000000005, number_of_digits = 6;
6593
6592
  const decimal = extractDecimalPart(value);
6594
6593
  if (decimal === '') {
6595
6594
  return value;