Fast fractions data type for rational numbers. Cythonized version of 'fractions.Fraction'.
Python’s Fraction data type is an excellent way to do exact money calculations and largely beats Decimal in terms of simplicity, accuracy and safety. Clearly not in terms of speed, though.
This is an adaptation of the original module (as included in CPython 3.4) that is compiled and optimised with Cython into a fast, native extension module.
Compared to the standard library ‘fractions’ module in Py2.7 and Py3.4, ‘quicktions’ is currently about 10x faster.
Release history Release notifications
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size||File type||Python version||Upload date||Hashes|
|Filename, size quicktions-0.1.tar.gz (158.2 kB)||File type Source||Python version None||Upload date||Hashes View hashes|