Skip to content

Commit 1722d65

Browse files
authored
Use two decimal when formatting monetary amounts
1 parent e9ad123 commit 1722d65

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

currencies/src/main/kotlin/by/jprof/telegram/bot/currencies/CurrenciesUpdateProcessor.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ class CurrenciesUpdateProcessor(
4646
.sortedBy { it.query.to }
4747
.joinToString(", ") { "%.2f %s".format(it.result, it.query.to).escapeMarkdownV2Common() }
4848

49-
"**${"%.0f %s".format(amount, from).escapeMarkdownV2Common()}**: %s".format(results)
49+
"**${"%.2f %s".format(amount, from).escapeMarkdownV2Common()}**: %s".format(results)
5050
}
5151
.joinToString("\n")
5252

0 commit comments

Comments
 (0)