I try to format floats into currency-strings with babel. The following code:
from babel.numbers import format_currency
print(format_currency(value, 'CHF', locale='de_CH'))
print(format_currency(value, 'CHF', '¤¤ #,##0.00', locale='de_CH'))
print(format_currency(value, 'CHF', '#,##0.00', locale='de_CH'))
results in the following formatting errors:
CHF-100.50
-CHF 100.50
-CHF 100.50
I would expect the following result:
CHF -100.50
what am I doing wrong? can't figure out the error. Thank you very much for all your help