Status: Accepted
Owner: [email protected]
Labels: Type-Defect Priority-Medium
New issue 2727 by [email protected]: round could return a sympy Number
http://code.google.com/p/sympy/issues/detail?id=2727
round returns a float at present. With a positive precision, perhaps it
could return a Float, and with negative precision it could return an
Integer:
>>> round(S(123),1)
123.0
>>> round(S(123),-1)
120.0
--
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.