Skip to content

Commit

Permalink
English number formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
arty-name committed Jan 24, 2025
1 parent 646592d commit 1ee20fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/polkadot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export function formatPlanckToDot(value: bigint, nDecimals = 5): string {
value = value / 10n + rounding;
value *= 10n ** BigInt(precision - nDecimals);
}
const intPartStr = (value / precisionMultiplier).toString();
const intPartStr = (value / precisionMultiplier).toLocaleString('en');
const decimalPart = value % precisionMultiplier;
if (decimalPart === 0n) {
return intPartStr;
Expand Down

0 comments on commit 1ee20fc

Please sign in to comment.