encyclopegia.org

GNU MPFR

The GNU Multiple Precision Floating-Point Reliable Library (GNU MPFR) is a GNU portable C library for arbitrary-precision binary floating-point computation with correct rounding, based on GNU Multiple Precision Arithmetic Library.

The GNU Multiple Precision Floating-Point Reliable Library (GNU MPFR) is a GNU portable C library for arbitrary-precision binary floating-point computation with correct rounding, based on GNU Multiple Precision Arithmetic Library. ==Library== MPFR's computation is both efficient and has a well-defined semantics: the functions are completely specified on all the possible operands and the results do not depend on the platform. This is done by copying the ideas from the ANSI/IEEE-754 standard for fixed-precision floating-point arithmetic (correct rounding and exceptions, in particular). More precisely, its main features are: Support for special numbers: signed zeros (+0 and −0), infinities and not-a-number (a single NaN is supported: MPFR does not differentiate between quiet NaNs and signaling NaNs). Each number has its own precision (in bits since MPFR uses radix 2). The floating-point results are correctly rounded to the precision of the target variable, in one of the five supported rounding modes (including the four from IEEE 754-1985). Supported functions: MPFR implements all mathematical functions from C99 and other usual mathematical functions: the logarithm and exponential in natural base, base 2 and base 10, the log(1+x) and exp(x)−1 functions ( log1p and expm1 ), the six trigonometric and hyperbolic functions and their inverses, the gamma, zeta and error functions, the arithmetic–geometric mean, the power (x y ) function. All those functions are correctly rounded over their complete range. Subnormal numbers are not supported, but can be emulated with the mpfr_subnormalize function. MPFR is not able to track the accuracy of numbers in a whole program or expression; this is not its goal. Interval arithmetic packages like Arb, MPFI, or Real RAM implementations like iRRAM, which may be based on MPFR, can do that for the user. MPFR is dependent upon the GNU Multiple Precision Arithmetic Library (GMP). MPFR is needed to build the GNU Compiler Collection (GCC). Other software uses MPFR, such as ALGLIB, CGAL, FLINT, GNOME Calculator, the Julia language implementation, the Magma computer algebra system, Maple, GNU MPC, and GNU Octave. ==See also== List of open-source mathematical libraries ==References==

References

  1. MPFR: A multiple-precision binary floating-point library with correct rounding · retrieved 2026-11-18 · rev 1341537144
    Cite this reference

    MLA "MPFR: A multiple-precision binary floating-point library with correct rounding." Fousse, L. 2026-11-18. https://en.wikipedia.org/wiki/Doi_(identifier). Accessed 24 November 2026.

    Chicago "MPFR: A multiple-precision binary floating-point library with correct rounding." Fousse, L. 2026-11-18. https://en.wikipedia.org/wiki/Doi_(identifier).

    APA Fousse, L. (2026). MPFR: A multiple-precision binary floating-point library with correct rounding. Retrieved November 24, 2026, from https://en.wikipedia.org/wiki/Doi_(identifier)

  2. Frequently asked questions about MPFR: 1. What are the differences between MPF from GMP and MPFR? · retrieved 2026-11-18 · rev 1341537144
    Cite this reference

    MLA "Frequently asked questions about MPFR: 1. What are the differences between MPF from GMP and MPFR?." "Frequently asked questions about MPFR: 1. 2026-11-18. https://www.mpfr.org/faq.html#mpfr_vs_mpf. Accessed 24 November 2026.

    Chicago "Frequently asked questions about MPFR: 1. What are the differences between MPF from GMP and MPFR?." "Frequently asked questions about MPFR: 1. 2026-11-18. https://www.mpfr.org/faq.html#mpfr_vs_mpf.

    APA "Frequently asked questions about MPFR: 1. (2026). Frequently asked questions about MPFR: 1. What are the differences between MPF from GMP and MPFR?. Retrieved November 24, 2026, from https://www.mpfr.org/faq.html#mpfr_vs_mpf

  3. Arb, a C library for arbitrary-precision ball arithmetic · retrieved 2026-11-18 · rev 1341537144
    Cite this reference

    MLA "Arb, a C library for arbitrary-precision ball arithmetic." 2026-11-18. https://arblib.org/. Accessed 24 November 2026.

    Chicago "Arb, a C library for arbitrary-precision ball arithmetic." 2026-11-18. https://arblib.org/.

    APA encyclopegia.org. (2026). Arb, a C library for arbitrary-precision ball arithmetic. Retrieved November 24, 2026, from https://arblib.org/

  4. MPFI Project · retrieved 2026-11-18 · rev 1341537144
    Cite this reference

    MLA "MPFI Project." 2026-11-18. https://gitlab.inria.fr/mpfi/mpfi/. Accessed 24 November 2026.

    Chicago "MPFI Project." 2026-11-18. https://gitlab.inria.fr/mpfi/mpfi/.

    APA encyclopegia.org. (2026). MPFI Project. Retrieved November 24, 2026, from https://gitlab.inria.fr/mpfi/mpfi/

  5. iRRAM, a software library for exact real arithmetic · retrieved 2026-11-18 · rev 1341537144
    Cite this reference

    MLA "iRRAM, a software library for exact real arithmetic." 2026-11-18. http://irram.uni-trier.de/. Accessed 24 November 2026.

    Chicago "iRRAM, a software library for exact real arithmetic." 2026-11-18. http://irram.uni-trier.de/.

    APA encyclopegia.org. (2026). iRRAM, a software library for exact real arithmetic. Retrieved November 24, 2026, from http://irram.uni-trier.de/

  6. GCC 4.3 Release Series: Changes, New Features, and Fixes · retrieved 2026-11-18 · rev 1341537144
    Cite this reference

    MLA "GCC 4.3 Release Series: Changes, New Features, and Fixes." "GCC 4. 2026-11-18. https://gcc.gnu.org/gcc-4.3/changes.html#mpfropts. Accessed 24 November 2026.

    Chicago "GCC 4.3 Release Series: Changes, New Features, and Fixes." "GCC 4. 2026-11-18. https://gcc.gnu.org/gcc-4.3/changes.html#mpfropts.

    APA "GCC 4. (2026). GCC 4.3 Release Series: Changes, New Features, and Fixes. Retrieved November 24, 2026, from https://gcc.gnu.org/gcc-4.3/changes.html#mpfropts

  7. The Rise of Mixed Precision Arithmetic · retrieved 2026-11-18 · rev 1341537144
    Cite this reference

    MLA "The Rise of Mixed Precision Arithmetic." Higham, Nick (October 8, 2015). 2026-11-18. https://nhigham.com/2015/10/08/the-rise-of-mixed-precision-arithmetic/. Accessed 24 November 2026.

    Chicago "The Rise of Mixed Precision Arithmetic." Higham, Nick (October 8, 2015). 2026-11-18. https://nhigham.com/2015/10/08/the-rise-of-mixed-precision-arithmetic/.

    APA Higham, Nick (October 8, 2015). (2026). The Rise of Mixed Precision Arithmetic. Retrieved November 24, 2026, from https://nhigham.com/2015/10/08/the-rise-of-mixed-precision-arithmetic/

  8. Announce: GNU MPFR 4.2.2 is released · retrieved 2026-11-18 · rev 1341537144
    Cite this reference

    MLA "Announce: GNU MPFR 4.2.2 is released." Vincent Lefèvre (20 March 2025). 2026-11-18. https://sympa.inria.fr/sympa/arc/mpfr/2025-03/msg00036.html. Accessed 24 November 2026.

    Chicago "Announce: GNU MPFR 4.2.2 is released." Vincent Lefèvre (20 March 2025). 2026-11-18. https://sympa.inria.fr/sympa/arc/mpfr/2025-03/msg00036.html.

    APA Vincent Lefèvre (20 March 2025). (2026). Announce: GNU MPFR 4.2.2 is released. Retrieved November 24, 2026, from https://sympa.inria.fr/sympa/arc/mpfr/2025-03/msg00036.html

Cite this article

MLA

"GNU MPFR." encyclopegia.org, 2026, https://encyclopegia.org/wiki/gnu-mpfr. Accessed 24 November 2026.

Chicago

"GNU MPFR." encyclopegia.org. Accessed November 24, 2026. https://encyclopegia.org/wiki/gnu-mpfr.

APA

encyclopegia.org. (2026). GNU MPFR. Retrieved November 24, 2026, from https://encyclopegia.org/wiki/gnu-mpfr

Accessed November 24, 2026 · CC BY-SA 4.0 · citation page · JSON

Related articles

GNU Manifesto

stub · references available

GNU Free Documentation License

stub · references available

GNU

stub · references available

GNU GRUB

stub · references available

GNU nano

stub · references available

GNU Linear Programming Kit

stub · references available

GNU Libtool

stub · references available

GNU Fortran

stub · references available
CC BY-SA 4.0 · share-alike · https://en.wikipedia.org/w/index.php?oldid=1341537144 · 0.5 · snapshot enwiki-001341537144

Cite · JSON · Search

Related services and records

Services

  • Estate — measured countries, lanes and facts
  • Intel — live corroborated events
  • Legal — statutes, cases and citations
  • Encyclopedia — articles with inline sources
  • Space — launches, satellites and orbits
  • Search — federated search and reports
  • Pass — passport account and SSO
  • Corpora — read-only corpus origins
  • e01 — self-hosted corpora and tools

Text and metadata only; each target carries its own sources. Missing data is published as no-data, never estimated.