Hi,

as a followup on the "Arbitrary precision in cython" thread, I'd like to
mention that one can directly use mpfr's implementation from within Sage:

sage: RealField(150)(10).eint()
2492.2289762418777591384401439985248489896471

It only works for real numbers, but has the advantage to guarantee correct
rounding (for the 150-bit binary result; if you are using the decimal
result above, you have to take into account the binary->decimal conversion
error, which is at most 1/2 ulp).

Paul Zimmermann

--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to