Skip to content

Commit 884968c

Browse files
committed
Update comments
1 parent 78339a3 commit 884968c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/utils.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,12 +83,12 @@ export function getValueFromCurrencyMask({
8383
maxDecimalPlaces !== undefined ? maxDecimalPlaces : 2;
8484

8585
if (divider === ',') {
86-
// en-US format: 123,456.00
86+
// en-US uses dot as decimal separator and comma for thousands
8787
return newValueAsNumber.toLocaleString('en-US', {
8888
maximumFractionDigits: decimalPlaces,
8989
});
9090
} else {
91-
// de-DE German uses comma as decimal separator and period for thousands
91+
// German uses comma as decimal separator and period for thousands
9292
return newValueAsNumber.toLocaleString('de-DE', {
9393
maximumFractionDigits: decimalPlaces,
9494
});

0 commit comments

Comments
 (0)