Skip to main content

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.

Release files for jepler-circuitpython-udecimal 1.0.13

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for jepler-circuitpython-udecimal 1.0.13
File Size Uploaded
jepler_circuitpython_udecimal-1.0.13.tar.gz 78.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for jepler-circuitpython-udecimal 1.0.13
File Interpreter ABI Platform
jepler_circuitpython_udecimal-1.0.13-py3-none-any.whl Python 3 none any Details

Total release size: 125.9 kB

Release files / jepler_circuitpython_udecimal-1.0.13.tar.gz

Download URL jepler_circuitpython_udecimal-1.0.13.tar.gz
Size 78.0 kB
Tags Source
SHA-256 checksum
How to use checksums
483f639a315b21d051393aca15ea61e7a1593378696336b64a5ce3c9037f050d
BLAKE2b-256 checksum
How to use checksums
1745370d9a1df8f389b7087b757667a7a2b03c5b3f6f40a8f79e66889f46c271
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.13

Release files / jepler_circuitpython_udecimal-1.0.13-py3-none-any.whl

Download URL jepler_circuitpython_udecimal-1.0.13-py3-none-any.whl
Size 47.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
723291fa8ddf725b0010f18ed3065757f8018654b2088835da1a1836662cde0b
BLAKE2b-256 checksum
How to use checksums
d0893bba2b5d607f3a05aa623e0bf49edbc55763e43fbabf9d9c30d91e078868
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.13
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page