Skip to content

Commit

Permalink
Update sympy/mpmath/libmp/libmpf.py
Browse files Browse the repository at this point in the history
  • Loading branch information
tsmars15 committed Nov 30, 2011
1 parent 765971e commit 93d4497
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sympy/mpmath/libmp/libmpf.py
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -418,7 +418,7 @@ def from_float(x, prec=53, rnd=round_fast):
# in Python2.6 it returns (float infinity, 0) # in Python2.6 it returns (float infinity, 0)
try: try:
m, e = math.frexp(x) m, e = math.frexp(x)
except FloatingPointError: except:
if x == math_float_inf: return finf if x == math_float_inf: return finf
if x == -math_float_inf: return fninf if x == -math_float_inf: return fninf
return fnan return fnan
Expand Down

0 comments on commit 93d4497

Please sign in to comment.