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 circuitpython-jepler-udecimal-1.0.10.tar.gz
.
File metadata
- Download URL: circuitpython-jepler-udecimal-1.0.10.tar.gz
- Upload date:
- Size: 76.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 01ac9289bf3a59e7bbceaa762550cad0f8b1fc3fa3ba003e6db08170705a2475 |
|
MD5 | a16c4f8f0ee6ef39515434747452f9ab |
|
BLAKE2b-256 | 93e01e3a38de9f916e75792d2967d732007f06f168b273ffc287d1d05bbe9611 |
File details
Details for the file circuitpython_jepler_udecimal-1.0.10-py3-none-any.whl
.
File metadata
- Download URL: circuitpython_jepler_udecimal-1.0.10-py3-none-any.whl
- Upload date:
- Size: 47.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1cfd17cdd1f62aa956a826ad824109965a5be1d2079160c4400fb4d100719a6f |
|
MD5 | 386a621d6aacd6efe51057365a252314 |
|
BLAKE2b-256 | a9635c5037dff0dd2a3d751f62f1dccb7c7c55bd2ec33aa99ddb9cb56c62da3d |