From 4d5a114cf3fbe1b1c73f880935a5b9c4b7372e1e Mon Sep 17 00:00:00 2001 From: Krzysztof Socha Date: Mon, 27 Feb 2017 21:44:43 +0100 Subject: [PATCH] Fixed integer division operator (/->//) to work also in python3 --- num2words/lang_PL.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/num2words/lang_PL.py b/num2words/lang_PL.py index 369e41f..4ce7380 100644 --- a/num2words/lang_PL.py +++ b/num2words/lang_PL.py @@ -245,7 +245,7 @@ def to_currency(n, currency='EUR', cents=True, seperator=','): minus = False n = abs(n) - left = n / 100 + left = n // 100 right = n % 100 else: n = str(n).replace(',', '.')