Comment #2 on issue 2727 by [email protected]: round could return a sympy
Number
http://code.google.com/p/sympy/issues/detail?id=2727
Starting with Python 3, apparently, according to this commit message, there
is a __round__ method:
In Python 2, the builtin round() method always returned a float. In
Python 3, this has been changed: round(x) now delegates to x.__round__.
Our Float class doesn't have a __round__ method, so add one. It simply
casts to float before calling the builtin (based on the same code in
mpmath).
--
You received this message because you are subscribed to the Google Groups
"sympy-issues" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sympy-issues?hl=en.