def convert_to_hex(number, n=9):
    """ Convert number to hexadecimal notation

    Parameters
    ----------
    number: :obj:`int`
        Number that has to be converted.
    n: :obj:`int`. Optional
        Length of the hexadecimal number. Default is 9.

    Returns
    -------
    hex: :obj:`str`
        Hexadecimal representation of provided number. """
    return format(number & 0xFFFFFFFFF, '0{}x'.format(n))