def vol_format(x):
    """
    Formats stock volume number to millions of shares. 

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