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
|
||||
|
||||
n = abs(n)
|
||||
left = n / 100
|
||||
left = n // 100
|
||||
right = n % 100
|
||||
else:
|
||||
n = str(n).replace(',', '.')
|
||||
|
||||
Reference in New Issue
Block a user