Skip to main content

Reduced version of the decimal library for CircuitPython

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

jepler_circuitpython_udecimal-1.0.13.tar.gz (78.0 kB view details)

Uploaded Source

Built Distribution

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

jepler_circuitpython_udecimal-1.0.13-py3-none-any.whl (47.9 kB view details)

Uploaded Python 3

File details

Details for the file jepler_circuitpython_udecimal-1.0.13.tar.gz.

File metadata

File hashes

Hashes for jepler_circuitpython_udecimal-1.0.13.tar.gz
Algorithm Hash digest
SHA256 483f639a315b21d051393aca15ea61e7a1593378696336b64a5ce3c9037f050d
MD5 24f11f78d52f61a11689837d8d17f51c
BLAKE2b-256 1745370d9a1df8f389b7087b757667a7a2b03c5b3f6f40a8f79e66889f46c271

See more details on using hashes here.

File details

Details for the file jepler_circuitpython_udecimal-1.0.13-py3-none-any.whl.

File metadata

File hashes

Hashes for jepler_circuitpython_udecimal-1.0.13-py3-none-any.whl
Algorithm Hash digest
SHA256 723291fa8ddf725b0010f18ed3065757f8018654b2088835da1a1836662cde0b
MD5 4fa1b90a2306ea634a5adcaafcba4093
BLAKE2b-256 d0893bba2b5d607f3a05aa623e0bf49edbc55763e43fbabf9d9c30d91e078868

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