Reduced version of the decimal library for CircuitPython
Project description
Introduction
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file jepler-circuitpython-udecimal-1.0.8.tar.gz
.
File metadata
- Download URL: jepler-circuitpython-udecimal-1.0.8.tar.gz
- Upload date:
- Size: 77.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f754091f976e8d09f25906b57e61f002933c060ecc60f42e79a247f2d8cfed9f |
|
MD5 | 987390ab9a2a9025d87d8d1c757952e8 |
|
BLAKE2b-256 | 1303b31b010c2641dbd51c3c8bc9baf266f379e45a2b55829ffa5f0429906d52 |
File details
Details for the file jepler_circuitpython_udecimal-1.0.8-py3-none-any.whl
.
File metadata
- Download URL: jepler_circuitpython_udecimal-1.0.8-py3-none-any.whl
- Upload date:
- Size: 47.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a7313d5d48d755a4e30877006028d3efce49a8c9142a9c182401b5392c08ab58 |
|
MD5 | fcade727dfdd5cddd065f000fe37d06c |
|
BLAKE2b-256 | 6a32181a37d7033ccfa101e17aed1a56f0761ed4fe8e3b0c6dcc42028ea84488 |