Comment #7 on issue 2340 by [email protected]: Float(1) returns Integer
http://code.google.com/p/sympy/issues/detail?id=2340
Furthermore, the use of Float on zero is really weird. (see
https://github.com/sympy/sympy/issues/1580#issuecomment-9456464)
In short
Float(0.0) returns an Integer, while Float on any other python float
returns a Float (e.g. Float(1.0)). If you actually want Float(0.0), you are
forced to use the string syntax Float("0.0").
I think this is kind of inconsistent, and it's a bit of a pain to be
honest. Unless there's a good reason for this, I'll submit a fix on github.
--
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.