Skip to main content
Help improve PyPI by participating in a 5-minute user interface survey!

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. gmpy2 is the successor to the original gmpy module. The gmpy module only supported the GMP multiple-precision library. gmpy2 adds support for the MPFR (correctly rounded real floating-point arithmetic) and MPC (correctly rounded complex floating-point arithmetic) libraries. gmpy2 also updates the API and naming conventions to be more consistent and support the additional functionality.

Release 2.0.4 has the following fixes:

  1. bit_scan0() no longer returns -1 after the last 0-bit is reached.
  2. A performance regression with mpmath and Python 3.x has been fixed.
  3. divm() no longer mutates the arguments in certain circumstances.

Release history Release notifications

History Node

2.1.0a2

History Node

2.1.0a1

History Node

2.0.8

History Node

2.0.7

History Node

2.0.6

History Node

2.0.5

This version
History Node

2.0.4

History Node

2.0.3

History Node

2.0.2

History Node

2.0.1

History Node

2.0.0

History Node

2.0.0b4

History Node

2.0.0b3

Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
gmpy2-2.0.4.win32-py2.6.exe (557.8 kB) Copy SHA256 hash SHA256 Windows Installer 2.6 Oct 8, 2014
gmpy2-2.0.4.win32-py2.7.exe (557.0 kB) Copy SHA256 hash SHA256 Windows Installer 2.7 Oct 8, 2014
gmpy2-2.0.4.win32-py3.2.exe (555.0 kB) Copy SHA256 hash SHA256 Windows Installer 3.2 Oct 8, 2014
gmpy2-2.0.4.win32-py3.3.exe (551.1 kB) Copy SHA256 hash SHA256 Windows Installer 3.3 Oct 8, 2014
gmpy2-2.0.4.win32-py3.4.exe (551.0 kB) Copy SHA256 hash SHA256 Windows Installer 3.4 Oct 8, 2014
gmpy2-2.0.4.win-amd64-py2.6.exe (672.7 kB) Copy SHA256 hash SHA256 Windows Installer 2.6 Oct 8, 2014
gmpy2-2.0.4.win-amd64-py2.7.exe (671.8 kB) Copy SHA256 hash SHA256 Windows Installer 2.7 Oct 8, 2014
gmpy2-2.0.4.win-amd64-py3.2.exe (670.1 kB) Copy SHA256 hash SHA256 Windows Installer 3.2 Oct 8, 2014
gmpy2-2.0.4.win-amd64-py3.3.exe (664.8 kB) Copy SHA256 hash SHA256 Windows Installer 3.3 Oct 8, 2014
gmpy2-2.0.4.win-amd64-py3.4.exe (664.6 kB) Copy SHA256 hash SHA256 Windows Installer 3.4 Oct 8, 2014
gmpy2-2.0.4.zip (280.5 kB) Copy SHA256 hash SHA256 Source None Oct 8, 2014

Supported by

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