/** * Rounds a number to at most a given number of decimals, without padding * shorter results with trailing zeroes. * * @param num - Number to round * @param decimalCount - Maximum number of decimals to round to * * @returns The number rounded to the given number of decimals * * @example * ```ts * roundDecimals(3.14159, 2); // --> 3.14 * roundDecimals(3.1, 4); // --> 3.1 (no trailing zeroes added) * roundDecimals(3.4500000003, 2); // --> 3.45 (floating point imprecision avoided) * ``` */ export declare function roundDecimals(num: number, decimalCount: number): number; export default roundDecimals;