docs: def currency_format(cents):
      """Format currency with symbol and decimal points.
  
      >> currency_format(-600)
      - $6.00
  
      TODO: Add localization support.
      """
      try:
          cents = int(cents)
      except ValueError:
          return cents
  
      negative = (cents < 0)
      if negative:
          cents = -1 * cents
  
      if cents < 100:
          dollars = 0
      else:
          dollars = cents / 100
          cents = cents % 100
  
      centstr = str(cents)
      if len(centstr) < 2:
          centstr = '0' + centstr
  
      if negative:
          return "- $%s.%s" % (intcomma(dollars), centstr)
      return "$%s.%s" % (intcomma(dollars), centstr)