On 2014-10-03 03:27, ref...@uncg.edu wrote:
Francois,

Never mind, I think I figured it out.  Apparently, sage initializes .001
in MPFR using the fact that .001 = 1/1000.  Using the appropriate set
methods in MPFR fixes the issue.  Attached is the code that makes Sage
and MPFR agree.

Alternatively, use
mpfr_set_str(x, "0.001", 0, MPFR_RNDN)

--
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.

Reply via email to