UNPKG

@technobuddha/library

Version:
11 lines (10 loc) 352 B
/** * Add leading zeros to a number to ensure a string of a minimum length * * @param input - The number to pad * @param length - The minimum length of the resulting string * @returns number as a string with leading zeros as needed * @group Math * @category Numbers */ export declare function padNumber(input: number, length?: number): string;