mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-10-17 05:41:29 +02:00
8 lines
233 B
Dart
8 lines
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;
|
|
} |