mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2024-11-17 17:57:36 +00:00
8 lines
No EOL
180 B
Dart
8 lines
No EOL
180 B
Dart
String formatAmount(String amount) {
|
|
if (!amount.contains('.')) {
|
|
return amount + '.00';
|
|
} else if (amount.endsWith('.')) {
|
|
return amount + '00';
|
|
}
|
|
return amount;
|
|
} |