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.

Files for gmpy2, version 2.0.7
Filename, size File type Python version Upload date Hashes
Filename, size gmpy2-2.0.7-cp26-none-win32.whl (364.2 kB) File type Wheel Python version 2.6 Upload date Hashes View hashes
Filename, size gmpy2-2.0.7-cp26-none-win_amd64.whl (451.1 kB) File type Wheel Python version 2.6 Upload date Hashes View hashes
Filename, size gmpy2-2.0.7-cp27-none-win32.whl (363.6 kB) File type Wheel Python version 2.7 Upload date Hashes View hashes
Filename, size gmpy2-2.0.7-cp27-none-win_amd64.whl (450.0 kB) File type Wheel Python version 2.7 Upload date Hashes View hashes
Filename, size gmpy2-2.0.7-cp32-none-win32.whl (361.3 kB) File type Wheel Python version 3.2 Upload date Hashes View hashes
Filename, size gmpy2-2.0.7-cp32-none-win_amd64.whl (447.2 kB) File type Wheel Python version 3.2 Upload date Hashes View hashes
Filename, size gmpy2-2.0.7-cp33-none-win32.whl (362.5 kB) File type Wheel Python version 3.3 Upload date Hashes View hashes
Filename, size gmpy2-2.0.7-cp33-none-win_amd64.whl (444.3 kB) File type Wheel Python version 3.3 Upload date Hashes View hashes
Filename, size gmpy2-2.0.7-cp34-none-win32.whl (362.2 kB) File type Wheel Python version 3.4 Upload date Hashes View hashes
Filename, size gmpy2-2.0.7-cp34-none-win_amd64.whl (444.1 kB) File type Wheel Python version 3.4 Upload date Hashes View hashes
Filename, size gmpy2-2.0.7.zip (280.4 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page