I hope I am not pointing out something obvious, or that the fix to this is not obvious.
I am using gmpy2 2.0.3 on a 64 bit windows 7 machine, coding with PyScripter. The following code gives an "Invalid floating point operation" error,
from gmpy2 import mpfr
mpfr(0.5)
Does this happen to anyone else? I understand that 0.5 = 0*1 + 1/2^(1), if that should inspire anything. Similarly, this also breaks,
from gmpy2 import mpfr
mpfr(0.25)
since 0.25 = 0*1 + 0*(1/2^1) + 1*(1/2^2).
Edit: I am new to the package, maybe some ideas on how to use if properly. Please pardon this if this question is no in the appropriate forum.