Comment #16 on issue 3086 by [email protected]: round() function overrides built-in
http://code.google.com/p/sympy/issues/detail?id=3086

It took me a moment to find it...but when the number is complex, they just round the two parts. This makes sense, I think.

    >>> [round(a) for a in S(3.14j+7*sin(exp(2))).as_real_imag()]
    [6., 3.]
    >>> _[0] + I*_[1]
    6.0 + 3.0*I

Aaron:
it doesn't work on non-Number objects anyway.

You must mean non-numeric, b/c

    >>> round(sqrt(2) + 3, 3)
    4.414


--
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.

Reply via email to