Skip to main content

Reduced version of the decimal library for CircuitPython

This project has been archived.

The maintainers of this project have marked this project as archived. No new releases are expected.

Project description

Introduction

Documentation Status Discord Build Status Code Style: Black pre-commit.ci status

Reduced version of the decimal library for CircuitPython

Important Note

From version 1.0.9 through 1.0.12, this package was incorrectly published on pypi under the name circuitpython-jepler-udecimal. The correct package name is jepler-circuitpython-udecimal.

Dependencies

This library depends on:

The library also runs on desktop Python3, and should give numerically identical results across all platorms.

Installing from PyPI

To install for current user:

python3 -mpip install --user jepler-circuitpython-udecimal

To install system-wide (this may be required in some cases):

sudo python3 -mpip install jepler-circuitpython-udecimal

To install in a virtual environment in your current project:

mkdir project-name && cd project-name
python3 -m venv .env
source .env/bin/activate
pip3 install jepler-circuitpython-udecimal

Usage Example

>>> from jepler_udecimal import Decimal
>>> Decimal(2)/3
Decimal('0.6666666666666666666666666667')
>>> Decimal('.1') + Decimal('.2') == Decimal('.3')
True

Contributing

Contributions are welcome! Please read our Code of Conduct before contributing to help this project stay welcoming.

Documentation

For information on building library documentation, please check out this guide.

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

circuitpython_jepler_udecimal-1.0.12.tar.gz (76.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

circuitpython_jepler_udecimal-1.0.12-py3-none-any.whl (47.4 kB view details)

Uploaded Python 3

File details

Details for the file circuitpython_jepler_udecimal-1.0.12.tar.gz.

File metadata

File hashes

Hashes for circuitpython_jepler_udecimal-1.0.12.tar.gz
Algorithm Hash digest
SHA256 2b73978db492950b47c329d257632645ae00be591bd262c9fb268c09cb2c2360
MD5 4cce97afa124e394e52d7204ff52aaed
BLAKE2b-256 03af30b13b362930324a4224aade03ddfd11c91ac8f83cde7726f15e89a3a736

See more details on using hashes here.

File details

Details for the file circuitpython_jepler_udecimal-1.0.12-py3-none-any.whl.

File metadata

File hashes

Hashes for circuitpython_jepler_udecimal-1.0.12-py3-none-any.whl
Algorithm Hash digest
SHA256 a4402a83657d82393576390ad45393f5d6e255cf530843fb265af28b4de36db9
MD5 610ee7e1a6d223719a65722e76f1ccc5
BLAKE2b-256 32d29d343dfd92448f183f2a3a45666e403fc9553058ab62b23853bdbb5324e1

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page