mirror of
https://github.com/bblaz/num2words.git
synced 2025-12-06 06:42:25 +00:00
Fixed integer division operator (/->//) to work also in python3
This commit is contained in:
@@ -245,7 +245,7 @@ def to_currency(n, currency='EUR', cents=True, seperator=','):
|
|||||||
minus = False
|
minus = False
|
||||||
|
|
||||||
n = abs(n)
|
n = abs(n)
|
||||||
left = n / 100
|
left = n // 100
|
||||||
right = n % 100
|
right = n % 100
|
||||||
else:
|
else:
|
||||||
n = str(n).replace(',', '.')
|
n = str(n).replace(',', '.')
|
||||||
|
|||||||
Reference in New Issue
Block a user