Kvaser CanKing GUI Extensions SDK - v7.5.1
    Preparing search index...

    Function decimalToHex

    • Converts a decimal number to a hexadecimal string.

      Parameters

      • d: number

        The number to convert.

      • padding: number = 2

        Number of hexadecimal digits in the returned value, the result will be padded with zeroes.

      • prefix: boolean = false

        True if a 0x prefix should be added.

      Returns string

      The hexadecimal formatted value.