from tinytab import fmt_currency
fmt_currency(1234.5)'$1,234.50'
Format a number as a currency value.
Usage
x: floatThe amount to format.
currency: str = "USD" strAmounts are in US dollars by default:
Choose another currency with its three-letter code, in any case. Negative amounts put the sign before the symbol:
Yen are shown without decimal places: