gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] [taler-merchant-frontend-examples] 01/02: Fix fraction conv


From: gnunet
Subject: [GNUnet-SVN] [taler-merchant-frontend-examples] 01/02: Fix fraction conversion
Date: Tue, 21 Feb 2017 17:04:58 +0100

This is an automated email from the git hooks/post-receive script.

marcello pushed a commit to branch master
in repository merchant-frontend-examples.

commit 13a339798b299f862004b3feb2b8de77a1a65ca4
Author: Marcello Stanisci <address@hidden>
AuthorDate: Tue Feb 21 16:49:47 2017 +0100

    Fix fraction conversion
---
 Python/lib/pytaler/amounts.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Python/lib/pytaler/amounts.py b/Python/lib/pytaler/amounts.py
index 0e7bbfe..e15e623 100644
--- a/Python/lib/pytaler/amounts.py
+++ b/Python/lib/pytaler/amounts.py
@@ -30,7 +30,7 @@ def string_to_amount(fmt):
     split = num.split(".")
     value = int(split[0])
     fraction = float("0." + split[1]) * FRACTION
-    return dict(value=value, fraction=fraction, currency=currency)
+    return dict(value=value, fraction=int(fraction), currency=currency)
 
 
 def amount_sum(a1, a2):

-- 
To stop receiving notification emails like this one, please contact
address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]