API

Function PadNumber

  • Converts a number to string and pads with preceding zeroes until it is of specified length.

    Parameters

    • num: number

      the number to convert and pad

    • length: number

      the expected length of the string

    Returns string

    the padded string