@technobuddha/library
Version:
A large library of useful functions
11 lines (10 loc) • 352 B
TypeScript
/**
* 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;