Overview Description
When using babel.numbers.format_currency, the negative currency is formatted with the negative sign before the currency name, like '-$100.00' and -CHF 100.00. See this Stack Overflow question for more examples. In some locales this doesn't make much of a change (ex: in en_US both -$100 and $-100 looks OK), however, in others it doesn't make as much sense (ex: in de_CH the difference between -CHF 100.50 and CHF -100.50 is more noticeable).
Steps to Reproduce
Run format_currency() with a custom format and pass a negative value for the currency. For example:
format_currency(value, 'CHF', '¤¤ #,##0.00', locale='de_CH')
Actual Results
'-CHF 100.50'
Expected Results
'CHF -100.50'
Reproducibility
This is the default behavior.
Overview Description
When using
babel.numbers.format_currency, the negative currency is formatted with the negative sign before the currency name, like'-$100.00'and-CHF 100.00. See this Stack Overflow question for more examples. In some locales this doesn't make much of a change (ex: in en_US both -$100 and $-100 looks OK), however, in others it doesn't make as much sense (ex: in de_CH the difference between -CHF 100.50 and CHF -100.50 is more noticeable).Steps to Reproduce
Run
format_currency()with a custom format and pass a negative value for the currency. For example:Actual Results
'-CHF 100.50'Expected Results
'CHF -100.50'Reproducibility
This is the default behavior.