def format_price(price, currency='<STR_LIT:$>'):
if int(price) == price:<EOL><INDENT>return '<STR_LIT>'.format(currency, int(price))<EOL><DEDENT>return '<STR_LIT>'.format(currency, price)<EOL>
Format the price to have the appropriate currency and digits..

:param price: The price amount.
:param currency: The currency for the price.
:return: A formatted price string, i.e. '$10', '$10.52'.