Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

Convert decimals to approximate rational expressions

Project Description

A command-line wrapper around mpmath’s identify.

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

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

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

Installation

Python Package Index

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

pip install -U dedec

to install or upgrade.

Testing

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

pytest

Distribution

To create a new release

  1. bump the __version__ number,

  2. publish to PyPi and GitHub:

    $ make publish
    

License

dedec is published under the MIT license.

Release History

Release History

This version
History Node

0.4.1

History Node

0.4.0

History Node

0.3.1

History Node

0.3.0

History Node

0.2.3

History Node

0.2.2

History Node

0.2.1

History Node

0.2.0

Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
dedec-0.4.1-py2.py3-none-any.whl (5.9 kB) Copy SHA256 Checksum SHA256 py2.py3 Wheel Oct 2, 2017

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting