ID EN
Built-in Functions

round

Python 3.11

Return number rounded to ndigits precision after the decimal point. If ndigits is omitted or is None, it returns the nearest integer to its input.

Syntax

PYTHON
round(number, ndigits=None)

See Also

round() round() Floating Point Arithmetic: Issues and Limitations