mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2024-12-26 21:50:27 +00:00
8 lines
No EOL
233 B
Dart
8 lines
No EOL
233 B
Dart
String formatAmount(String amount) {
|
|
if ((!amount.contains('.'))&&(!amount.contains(','))) {
|
|
return amount + '.00';
|
|
} else if ((amount.endsWith('.'))||(amount.endsWith(','))) {
|
|
return amount + '00';
|
|
}
|
|
return amount;
|
|
} |