@annalib/anna-core 35.3.3 → 35.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.
@@ -6307,7 +6307,9 @@ class AnnaNumberFormatService {
6307
6307
  const result = AnnaNumberFormatService.GetValueInUnits(Math.abs(inputValue));
6308
6308
  let value = result[0];
6309
6309
  const unit = result[1];
6310
- value = +(+value).toFixed(digitsToRoundDecimalPoint);
6310
+ const factor = 10 ** digitsToRoundDecimalPoint;
6311
+ value = Math.round(((+value) + Number.EPSILON) * factor) / factor;
6312
+ // value = +(+value).toFixed(digitsToRoundDecimalPoint);
6311
6313
  if (inputValue < 0) {
6312
6314
  value *= -1;
6313
6315
  }