mirror of
https://github.com/dancojocaru2000/foxbank.git
synced 2025-09-18 18:29:22 +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");
|
|
} |