Skip to main content

GMP/MPIR, MPFR, and MPC interface to Python 2.6+ and 3.x

Project description

gmpy2 is a C-coded Python extension module that supports multiple-precision arithmetic. In addition to supporting GMP or MPIR for multiple-precision integer and rational arithmetic, gmpy2 adds support for the MPFR (correctly rounded real floating-point arithmetic) and MPC (correctly rounded complex floating-point arithmetic) libraries.

Release 2.0.7 has the following fixes:

  1. math.floor(gmpy2.mpfr(‘inf’)) no longer segfaults.

  2. The “wheel” format is used for the Windows binaries.

Release 2.0.6 has the following fixes:

  1. setup.py no longer changes the meaning of –prefix.

  2. Using the ‘X’ format code now works properly (convert to hex using upper-case letters).

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gmpy2-2.0.7.zip (280.4 kB view hashes)

Uploaded Source

Built Distributions

gmpy2-2.0.7-cp34-none-win_amd64.whl (444.1 kB view hashes)

Uploaded CPython 3.4 Windows x86-64

gmpy2-2.0.7-cp34-none-win32.whl (362.2 kB view hashes)

Uploaded CPython 3.4 Windows x86

gmpy2-2.0.7-cp33-none-win_amd64.whl (444.3 kB view hashes)

Uploaded CPython 3.3 Windows x86-64

gmpy2-2.0.7-cp33-none-win32.whl (362.5 kB view hashes)

Uploaded CPython 3.3 Windows x86

gmpy2-2.0.7-cp32-none-win_amd64.whl (447.2 kB view hashes)

Uploaded CPython 3.2 Windows x86-64

gmpy2-2.0.7-cp32-none-win32.whl (361.3 kB view hashes)

Uploaded CPython 3.2 Windows x86

gmpy2-2.0.7-cp27-none-win_amd64.whl (450.0 kB view hashes)

Uploaded CPython 2.7 Windows x86-64

gmpy2-2.0.7-cp27-none-win32.whl (363.6 kB view hashes)

Uploaded CPython 2.7 Windows x86

gmpy2-2.0.7-cp26-none-win_amd64.whl (451.1 kB view hashes)

Uploaded CPython 2.6 Windows x86-64

gmpy2-2.0.7-cp26-none-win32.whl (364.2 kB view hashes)

Uploaded CPython 2.6 Windows x86

Supported by

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