Comment #17 on issue 1053 by [email protected]: make sympify intelligent about 1/2 and 0.5
http://code.google.com/p/sympy/issues/detail?id=1053

A way to choose battles you can win (with converting floats to Rationals) is to convert only those that are exact in base 2: if m = log(n)/log(2) and m == int(m) then the float can be replaced without error as a Rational. e.g. 3/16 is exact, 0.1 is not. I do this in https://github.com/sympy/sympy/pull/1013 for Float generation from floats.

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