Or maybe it's considered not pythonic to use

int(1.3)

instead of

from math import floor
floor(1.3)

But I doubt that...

On 9 January 2012 18:56, [email protected] <
[email protected]> wrote:

> In [22]: int(sin(2))
> TypeError: int() argument must be a string or a number, not 'sin'
>
> In [24]: float(sin(2))
> Out[24]: 0.9092974268256817
>
> Is there a reason for doing it this way? Or is it a bug/enhancement to be
> made?
>
> Maybe expr should get an __int__ method that returns int(float(self))?
>

-- 
You received this message because you are subscribed to the Google Groups 
"sympy" 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?hl=en.

Reply via email to