Behavior of mpf_eq near zero

Marc Glisse marc.glisse at inria.fr
Mon Apr 13 11:12:07 UTC 2015


On Mon, 13 Apr 2015, Vincent Lefevre wrote:

> On 2015-04-13 11:58:15 +0200, Marc Glisse wrote:
>> Doesn't the manual already say that the whole mpf is obsolete?
>
> No, it just seems to discourage its use *a little*:
>
> |    Note that the `mpf' functions are _not_ intended as a smooth
> | extension to IEEE P754 arithmetic.  In particular results obtained on
> | one computer often differ from the results on a computer with a
> | different word size.
> |
> |    The GMP extension library MPFR (`http://mpfr.org') is an alternative
> | to GMP's `mpf' functions.  MPFR provides well-defined precision and
> | accurate rounding, and thereby naturally extends IEEE P754.

https://gmplib.org
"New projects should strongly consider using the much more complete GMP 
extension library mpfr instead of mpf."

-- 
Marc Glisse


More information about the gmp-discuss mailing list