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