Round a number to a chosen number of decimal places.
Rounding finds the nearest value at the requested precision, rounding halfway cases up.
rounded = round(number × 10^places) ÷ 10^places