number-as-string
Version:
Precise number scaling and formatting without JavaScript floating-point precision issues
9 lines • 443 B
TypeScript
/**
* Formats a scaled number string to a number string with the specified number of decimal places.
*
* @param scaledValue - The scaled number string to format.
* @param decimals - The number of decimal places to include in the formatted number string.
* @returns The formatted number string.
*/
export declare function scaleDown(scaledValue: number | string | bigint, decimals: number): string;
//# sourceMappingURL=scale-down.d.ts.map