[issue19933] Round default argument for "ndigits"

Mark Dickinson report at bugs.python.org
Mon Dec 9 13:04:29 CET 2013


Mark Dickinson added the comment:

Thanks.  It's inaccurate to say that a float is returned in general, though:  for most builtin numeric types, what's returned has the same type as its input.  So rounding a Decimal to two places gives a Decimal on output, etc.  (That's already explained in the next paragraph.)

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue19933>
_______________________________________


More information about the Python-bugs-list mailing list