def decimal_to_hexadecimal(decimal: int)-> str:
    """Convert a Decimal Number to a Hexadecimal Number."""
    if not isinstance(decimal , int):
        raise TypeError("You must enter integer value")
    if decimal == 0:
        return '0x0'
    is_negative = '-' if decimal < 0 else ''
    decimal = abs(decimal)
    chars = '0123456789abcdef'
    hex: list[str] = []
    while decimal > 0:
        hex.insert(0 , chars[decimal % 16])
        decimal //= 16
    return f'{is_negative}0x{"".join(hex)}'