def ConvertDecimalToHexadecimal (integer: int, minimumLength: int = -1) -> str:
	"""
	Convert integer to hexadecimal string
	:type integer: int
	:param minimumLength: If the hexadecimal is shorter than this number it will be padded with extra zeros.
	:type minimumLength: int
	:type: str
	"""

	hexString = hex(integer)[2:]

	if len(hexString) < minimumLength:
		hexString = "0" * (minimumLength - len(hexString)) + hexString

	hexString = hexString.upper()

	return hexString