PyDocs

Nav

Python Runtime Services

round

builtins

function
  • round(number, ndigits=None)
Round a number to a given precision in decimal digits.

The return value is an integer if ndigits is omitted or None.
Otherwise the return value has the same type as the number.  ndigits
may be negative.
0 Examples
No examples for builtins/round.
See Also
No see-alsos for builtins/round
0 Notes
No notes for round