Welcome, guest | Sign In | My Account | Store | Cart

Notice! PyPM is being replaced with the ActiveState Platform, which enhances PyPM’s build and deploy capabilities. Create your free Platform account to download ActivePython or customize Python with the packages you require and get automatic updates.

Download
ActivePython
INSTALL>
pypm install cdecimal

How to install cdecimal

  1. Download and install ActivePython
  2. Open Command Prompt
  3. Type pypm install cdecimal
 Python 2.7Python 3.2Python 3.3
Windows (32-bit)
2.3 Available View build log
2.2 Available View build log
2.1 Available View build log
1.97-rc1 Available View build log
2.3 Available View build log
2.2 Available View build log
2.1 Available View build log
Windows (64-bit)
2.3 Available View build log
2.2 Available View build log
2.1 Available View build log
1.97-rc1 Failed View build log
2.3 Available View build log
2.2 Available View build log
2.1 Available View build log
Mac OS X (10.5+)
2.3 Available View build log
2.2 Available View build log
2.1 Available View build log
1.97-rc1 Failed View build log
2.3 Available View build log
2.2 Available View build log
2.1 Available View build log
Linux (32-bit)
2.3 Available View build log
2.2 Available View build log
2.1 Available View build log
1.97-rc1 Available View build log
2.3 Available View build log
2.2 Available View build log
2.1 Available View build log
Linux (64-bit)
2.3 Available View build log
2.2 Available View build log
2.1 Available View build log
1.97-rc1 Available View build log
2.3 Available View build log
2.2 Available View build log
2.1 Available View build log
2.3 Available View build log
 
Author
License
BSD License
Imports
Lastest release
version 2.3 on Feb 3rd, 2012

Overview

The cdecimal package is a fast drop-in replacement for the decimal module in Python's standard library. Both modules provide complete implementations of Mike Cowlishaw/IBM's General Decimal Arithmetic Specification.

Testing

Both cdecimal and the underlying library - libmpdec - are extremely well tested. libmpdec is one of the few open source projects with 100% code coverage. cdecimal is rigorously tested against decimal.py.

Short benchmarks

Typical performance gains are between 30x for I/O heavy benchmarks and 80x for numerical programs. In a database benchmark, cdecimal exhibits a speedup of 12x over decimal.py.

  decimal cdecimal speedup
pi 42.75s 0.58s 74x
telco 172.19s 5.68s 30x
psycopg 3.57s 0.29s 12x

Documentation

Since cdecimal is compatible with decimal.py, the official documentation is valid. For the few remaining differences, refer to the second link.

Linux Notes

The build process requires a working C compiler and a full Python install with development headers. Linux distributions often ship the Python header files as a separate package, called python-dev or python-devel.

Install headers on Debian/Ubuntu:

  • sudo apt-get install python-dev

Windows Notes

Subscribe to package updates

Last updated Feb 3rd, 2012

Download Stats

Last month:5

What does the lock icon mean?

Builds marked with a lock icon are only available via PyPM to users with a current ActivePython Business Edition subscription.

Need custom builds or support?

ActivePython Enterprise Edition guarantees priority access to technical support, indemnification, expert consulting and quality-assured language builds.

Plan on re-distributing ActivePython?

Get re-distribution rights and eliminate legal risks with ActivePython OEM Edition.