I\'m trying to format a float as comma-separated currency. E.g. 543921.9354 becomes $543,921.94. I\'m using the format filter in Jinja t
543921.9354
$543,921.94
format
Write a custom filter for that. If you are using python 2.7, it can look like this:
def format_currency(value): return "${:,.2f}".format(value)