Rounds a number to a specific number of decimal places.
The number to round.
The number of decimal places.
The rounded number.
roundTo(3.14159, 2); // 3.14 Copy
roundTo(3.14159, 2); // 3.14
Rounds a number to a specific number of decimal places.