merchant-frontend-examples

ZZZ: Inactive/Deprecated
Log | Files | Refs

commit c628e371735d28f7995de439b5224e7bd05ad96e
parent 9129afa53efec4d246fde9a832903b1926cebb2b
Author: Marcello Stanisci <marcello.stanisci@inria.fr>
Date:   Tue, 21 Feb 2017 16:41:46 +0100

Fix fraction conversion

Diffstat:
MPython/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 @@ -29,7 +29,7 @@ def string_to_amount(fmt): currency = split[1] split = num.split(".") value = int(split[0]) - fraction = int(split[1]) * FRACTION + fraction = float("0." + split[1]) * FRACTION return dict(value=value, fraction=fraction, currency=currency)