def mkt_cap_format(x):
    """
    Formats number to millions of dollars. 

    Params:
        x (numeric, like int or float) the number to be formatted
    Example:
      mkt_cap_format(3000000) 
      mkt_cap_format(4490000)
    """
    return "${:.1f}M".format(x/1000000)