Skip to main content
2025 Python Packaging Survey is now live!  Take the survey now

GMP or MPIR interface to Python 2.4+ and 3.x

Project description

General MultiPrecision arithmetic for Python

gmpy is a C-coded Python extension module that provides access to the GMP (or MPIR) multiple-precision arithmetic library.

gmpy 1.17 is the final release of the 1.x series. No further updates are planned. All further development is occurring in the 2.x series, also known as gmpy2. Please see https://pypi.python.org/pypi/gmpy2/ for the latest 2.x releases.

GMPY allows creation of multiprecision integer (mpz), float (mpf),and rational (mpq) numbers, conversion between them and to/from Python numbers/strings, arithmetic, bitwise, and some other higher-level mathematical operations.

Version 1.17 only fixes compatibility with Python 3.x and other C extensions that use gmpy.

Version 1.16 fixes a minor issue with the new Decimal type in Python 3.3.

Version 1.15 was the last significant release.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page