kaven-basic - v6.0.0
    Preparing search index...

    Function ToHex

    • Converts a number to its hexadecimal string representation.

      Parameters

      • number: number

        The number to convert to hexadecimal.

      • Optionallen: number

        Optional. The minimum length of the resulting string. If specified and the hexadecimal string is shorter, it will be left-padded with zeros.

      Returns string

      The hexadecimal string representation of the input number, padded with zeros to the specified length if provided.

      4.0.0

      2025-06-27