pace-table-lib 1.0.49 → 1.0.50

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.
@@ -8326,7 +8326,10 @@
8326
8326
  const den = Number(totalValue);
8327
8327
  if (isNaN(num) || isNaN(den)) return num;
8328
8328
  if (den === 0) return num;
8329
- const percentage = num / den;
8329
+ let percentage = num / den;
8330
+ if (Math.abs(percentage) < 1e-10) {
8331
+ percentage = 0;
8332
+ }
8330
8333
  return percentage;
8331
8334
  }
8332
8335
  function createBorder(bWidth, bType, bColor) {