convnum
    Preparing search index...

    Function toHex

    • Converts a decimal number to a hexadecimal string

      Parameters

      • num: number

        The decimal number to convert

      • prefix: PrefixType = false

        Whether to include prefix: false (no prefix), "lower" (0x), "upper" (0X)

      Returns string

      The hexadecimal representation as a string