pretty-num
Version:
Lightweight module for formatting numbers to a human readable string
9 lines • 365 B
TypeScript
/**
* Pad number string with zeros to fixed precision
* Don't work with exponential notation, use `from-exponential` if necessary
* @param {string|number} numString
* @param {number} precision
* @return {string}
*/
export default function padZerosToFixed(numString: string | number, precision: number): string;
//# sourceMappingURL=pad-zeros-to-fixed.d.ts.map