@annalib/anna-core 37.0.16 → 37.0.18
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.
|
@@ -6506,7 +6506,7 @@ class AnnaNumberFormatService {
|
|
|
6506
6506
|
let value = result[0];
|
|
6507
6507
|
const unit = result[1];
|
|
6508
6508
|
const factor = 10 ** digitsToRoundDecimalPoint;
|
|
6509
|
-
value = Math.round((
|
|
6509
|
+
value = Math.round((+value + Number.EPSILON) * factor) / factor;
|
|
6510
6510
|
// value = +(+value).toFixed(digitsToRoundDecimalPoint);
|
|
6511
6511
|
if (inputValue < 0) {
|
|
6512
6512
|
value *= -1;
|
|
@@ -6520,7 +6520,7 @@ class AnnaNumberFormatService {
|
|
|
6520
6520
|
if (inputValue < 0) {
|
|
6521
6521
|
value *= -1;
|
|
6522
6522
|
}
|
|
6523
|
-
return value.toLocaleString("en-
|
|
6523
|
+
return value.toLocaleString("en-US");
|
|
6524
6524
|
}
|
|
6525
6525
|
static GetRoundedValueWithUnitsAndDollarSymbol(inputValue, digitsToRoundDecimalPoint = 2) {
|
|
6526
6526
|
if (inputValue === 0)
|