Formula: round to any decimal places

Hello all,
is there a formula where you can round to any decimal places? I would like to round the formula part in the square box to three decimal places, for example 0.123.

But the total result should be calculated to any number of decimal places.

Best regards