code: def intword(value, format='%.1f'):
      
      try:
          value = int(value)
      except (TypeError, ValueError):
          return value
  
      if value < powers[0]:
          return str(value)
      for ordinal, power in enumerate(powers[1:], 1):
          if value < power:
              chopped = value / float(powers[ordinal - 1])
              return (' '.join([format, _(human_powers[ordinal - 1])])) % chopped
      return str(value)
docs: Converts a large integer to a friendly text representation. Works best for
      numbers over 1 million. For example, 1000000 becomes '1.0 million', 1200000
      becomes '1.2 million' and '1200000000' becomes '1.2 billion'.  Supports up to
      decillion (33 digits) and googol (100 digits).  You can pass format to change
      the number of decimal or general format of the number portion.  This function
      returns a string unless the value passed was unable to be coaxed into an int.