Skip to main content

Convert decimals to approximate rational expressions

Project description

identinum

A command-line wrapper around mpmath's identify.

CircleCI codecov Code style: black PyPi Version GitHub stars

You come across the number 0.866025. It looks vaguely familiar but you can't quite point your finger at it? Then identinum is for you.

identinum is a small command-line utility that "de-decimalizes" decimal numbers into approximate rational expressions (with some basic functions).

$ identinum 0.4285714285
3/7   -7.14285297576112E-11
$ identinum 0.866025403
sqrt(3)/2   -7.84438675343059E-10

Installation

identinum is available from the Python Package Index, so simply type

pip install identinum

to install or upgrade.

Testing

To run the identinum unit tests, check out this repository and type

pytest

License

identinum is published under the MIT license.

Project details


Release history Release notifications

This version

0.6.0

Download files

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

Files for identinum, version 0.6.0
Filename, size File type Python version Upload date Hashes
Filename, size identinum-0.6.0-py3-none-any.whl (5.3 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size identinum-0.6.0.tar.gz (3.9 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 DigiCert DigiCert EV certificate StatusPage StatusPage Status page