Issue 3191: round docstring is inaccurate (original) (raw)
In Python 3.0, help(round) gives the following:
round(...) round(number[, ndigits]) -> floating point number
Round a number to a given precision in decimal digits (default 0
digits). This returns an int when called with one argument, otherwise a float. Precision may be negative.
But in Python 3.x, round(x, n) doesn't always return a float; for example, if x is a Decimal or Fraction then round(x, 2) is again a Decimal or Fraction (respectively).