kcommons 9.50.0 → 9.50.1
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.
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.convertToINS = convertToINS;
|
|
4
|
+
const toFixedDecimal_util_1 = require("./toFixedDecimal.util");
|
|
4
5
|
const THOUSAND_LOWER_BOUND = 1000;
|
|
5
6
|
const LAKHS_LOWER_BOUND = THOUSAND_LOWER_BOUND * 100;
|
|
6
7
|
const CRORE_LOWER_BOUND = LAKHS_LOWER_BOUND * 100;
|
|
@@ -24,6 +25,6 @@ function convertToINS(price) {
|
|
|
24
25
|
return `${priceInThousands.toFixed(2)} ${THOUSAND_UNIT}`;
|
|
25
26
|
}
|
|
26
27
|
else {
|
|
27
|
-
return numericPrice;
|
|
28
|
+
return (0, toFixedDecimal_util_1.toFixedDecimal)(numericPrice);
|
|
28
29
|
}
|
|
29
30
|
}
|