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

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.8.tar.gz (77.9 kB view details)

Uploaded Source

Built Distribution

File details

Details for the file jepler-circuitpython-udecimal-1.0.8.tar.gz.

File metadata

File hashes

Hashes for jepler-circuitpython-udecimal-1.0.8.tar.gz
Algorithm Hash digest
SHA256 f754091f976e8d09f25906b57e61f002933c060ecc60f42e79a247f2d8cfed9f
MD5 987390ab9a2a9025d87d8d1c757952e8
BLAKE2b-256 1303b31b010c2641dbd51c3c8bc9baf266f379e45a2b55829ffa5f0429906d52

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for jepler_circuitpython_udecimal-1.0.8-py3-none-any.whl
Algorithm Hash digest
SHA256 a7313d5d48d755a4e30877006028d3efce49a8c9142a9c182401b5392c08ab58
MD5 fcade727dfdd5cddd065f000fe37d06c
BLAKE2b-256 6a32181a37d7033ccfa101e17aed1a56f0761ed4fe8e3b0c6dcc42028ea84488

See more details on using hashes here.

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