mirror of
https://github.com/dancojocaru2000/foxbank.git
synced 2025-12-23 03:30:18 +02: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");
|
|
} |