/** * Limit decimals of a floating number to specified length. The length depends on `decimalCount` * which can have the following settings (eg. 2 or ">3" or "<5"): * * Char | Description * ----- | ------------- * **>n** | Minimum number of decimals, if the current number of decimals are shorter than the defined length, extra 0 (zeros) will be added. * ** 123.46 * limitDecimals(123, 5) // --> 123.00000 * * // Max number of decimals * limitDecimals(123.4567, '<3') // --> 123.457 * limitDecimals(123, '<3') // --> 123 * * // Min number decimals * limitDecimals(123.4, '>4') // --> 123.4000 * limitDecimals(123.456789, '>4') // --> 123.456789 * * // Min, Max number decimals * limitDecimals(123.4, '2,4') // --> 123.40 * limitDecimals(123.456789, '2,4') // --> 123.4568 * ``` */ export declare function limitDecimals(num: number, decimalCount?: number | string): string; export default limitDecimals;