mirror of
https://github.com/bblaz/num2words.git
synced 2026-11-12 12:35:27 +00:00
Fixed integer division operator (/->//) to work also in python3
This commit is contained in:
1 parent
1667511ff3
commit
4d5a114cf3
1 file changed
+1
-1
@@ -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(',', '.')
|
||||
|
||||
Reference in new issue
Block a user