Most Pythonic way to print *at most* some number of decimal places,"format(f, '.2f').rstrip('0').rstrip('.')"