gmp: Library for arbitrary precision arithmetic - Packages and Features

Skip to content
Back to top
View this page
Edit this page

# gmp: Library for arbitrary precision arithmetic

## Description

GMP is a free library for arbitrary precision arithmetic, operating on signed integers, rational numbers, and floating-point numbers. There is no practical limit to the precision except the ones implied by the available memory in the machine GMP runs on. GMP has a rich set of functions, and the functions have a regular interface.

## License

- LGPL V3

## Upstream Contact

- http://gmplib.org

## Type

standard

## Dependencies

## Version Information

package-version.txt:

    6.3.0

## Equivalent System Packages

Alpine

    $ apk add gmp-dev

conda-forge

    $ conda install gmp

Debian/Ubuntu

    $ sudo apt-get install libgmp-dev

Fedora/Redhat/CentOS

    $ sudo dnf install gmp gmp-devel

FreeBSD

    $ sudo pkg install math/gmp

Gentoo Linux

    $ sudo emerge dev-libs/gmp

Homebrew

    $ brew install gmp

MacPorts

    $ sudo port install gmp

openSUSE

    $ sudo zypper install gmp-devel

pyodide

install the following packages: libgmp

Slackware

    $ sudo slackpkg install gmp

Void Linux

    $ sudo xbps-install gmp-devel gmpxx-devel

See https://repology.org/project/gmp/versions

If the system package is installed, `./configure` will check if it can be used.