mirror of
https://github.com/dancojocaru2000/foxbank.git
synced 2025-07-15 21:48:00 +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");
|
|
} |