mirror of
https://github.com/dancojocaru2000/foxbank.git
synced 2025-04-21 02:33:54 +03:00
4 lines
No EOL
136 B
JavaScript
4 lines
No EOL
136 B
JavaScript
export function amountToString(amount) {
|
|
amount = amount.toString().padStart(3, "0");
|
|
return amount.replace(/(.{2})$/, ".$1");
|
|
} |