Skip to main content

Fast fractions data type for rational numbers. Cythonized version of 'fractions.Fraction'.

Project description

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.

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

quicktions-0.1.tar.gz (158.2 kB view details)

Uploaded Source

File details

Details for the file quicktions-0.1.tar.gz.

File metadata

  • Download URL: quicktions-0.1.tar.gz
  • Upload date:
  • Size: 158.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for quicktions-0.1.tar.gz
Algorithm Hash digest
SHA256 f9e7a700b26adac42b6c0c0ac8ec015d5ee6a8cc4bd7bb054909908a591103b2
MD5 aa151391938c6999a36e2bf7d9e2e194
BLAKE2b-256 e23d3e6729133f640b16790c5e8e3a9ca4da6686934846b38f856b24f5d7d7a8

See more details on using hashes here.

Provenance

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