From 1d8979a436542a6106117b8375fcbd6f65d0d2a8 Mon Sep 17 00:00:00 2001 From: Minecon724 Date: Wed, 14 Aug 2024 13:34:20 +0200 Subject: [PATCH] fix float error --- app/src/main/java/eu/m724/coincounter/WalletActivity.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/eu/m724/coincounter/WalletActivity.kt b/app/src/main/java/eu/m724/coincounter/WalletActivity.kt index f225c7e..924287e 100644 --- a/app/src/main/java/eu/m724/coincounter/WalletActivity.kt +++ b/app/src/main/java/eu/m724/coincounter/WalletActivity.kt @@ -277,7 +277,7 @@ fun TransactionDialog( } TextButton( onClick = { - onConfirm(label, (value.toFloat() * 100).toInt()) + onConfirm(label, (value.toDouble() * 100).toInt()) } ) { Text("Create transaction")