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

    Function decimalToFixed

    • Converts a decimal number to a fixed length string.

      Parameters

      • d: number

        The number to convert.

      • padding: number = 3

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

      Returns string

      The fixed length formatted value.