function roundTo roundTo(num: number,decimals: number): number Rounds a number to the given number of decimal places. Examples Example 1 roundTo(1.235, 2); // 1.24 roundTo(1.5, 0); // 2 roundTo(1234.5, -2); // 1200 Parameters num: number decimals: number Return Type number