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