You are here : python_3Built-in Functionsround

round() - Built-in Functions

Return the floating point value number rounded to ndigits digits after
the decimal point.  If ndigits is omitted or is None, it returns the
nearest integer to its input.  Delegates to number.__round__(ndigits).


Syntax

round(number[, ndigits])


Example


Output / Return Value


Limitations


Alternatives / See Also


Reference