Number Manipulation

round(number, decimalPlaces)

Rounds a number to the specified number of decimal places.

print(round(3.14159, 2)); // Output: 3.14