PY/MATH
Challenges
Arithmetic · Easy

Round to Decimals

Write `round_to(x, n)` rounding `x` to `n` decimal places.

Examples
Input: round_to(3.14159, 2)
Output: 3.14
solution.py○ Loading…
Loading...
Console
Test cases
round_to(3.14159, 2)PENDING
round_to(2.71828, 3)PENDING
HiddenPENDING
Hints