Hi,
I cannot get the EUR subclass format correctly. What's the trick?
It should return 10.000,00 €.
TIA
I cannot get the EUR subclass format correctly. What's the trick?
It should return 10.000,00 €.
TIA
from money import Money, exceptions class USD(Money): def __init__(self, amount='0'): super().__init__(amount=amount, currency='USD') balance = 10000 b = USD(str(balance)) b = b.format('en_US') print(b) print('\n************\n') class EUR(Money): def __init__(self, amount='0'): super().__init__(amount=amount.format('it_IT'), currency='EUR') bal = EUR(str(balance)) print(bal)