def hex_to_number(hex_string):
    """
    Return a int representation of the encoding code.

    :param hex_string: Hex string to convert
    :type hex_string: str
    :return: The hex string as a number
    :type: int

    >>> hex_to_number('00F00D') == 0xF00D
    True

    """
    return int(hex_string, 16)