base_converter
A simple and reliable Python library for converting numbers between different bases (from base 2 to base 16), including support for fractions.
##Features
- Convert from any base (2 to 16) to decimal
- Convert from decimal to any base (2 to 16)
- Supports fractional numbers and negative values
Installation
pip install base-converter-pedromagno
Usage
from converter_base import convert_from_base_n_to_decimal, convert_from_decimal_to_base_n
print(convert_from_base_n_to_decimal("1A.4", 16)) # Output: 26.25
print(convert_from_decimal_to_base_n(26.25, 16)) # Output: '1A.4'
This project itself does not require any third-party libraries to use the core functionality.
Metadata
Release files for base-converter-pedromagno 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| base_converter_pedromagno-0.1.1.tar.gz | 3.1 kB | Without provenance | Details for base_converter_pedromagno-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| base_converter_pedromagno-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for base_converter_pedromagno-0.1.1-py3-none-any.whl |
Total release size: 6.3 kB
Release files / base_converter_pedromagno-0.1.1.tar.gz
| Download URL | base_converter_pedromagno-0.1.1.tar.gz |
|---|---|
| Size | 3.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c7e088f45f14b92151c8962d8d2e1255c4a956e0ab3a92b1dabbceb703722e8a
|
|
BLAKE2b-256 checksum How to use checksums |
744e48294a059cf856efb4e10acca9bab109da48353070905d7f61a818343ef1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.1
|
Release files / base_converter_pedromagno-0.1.1-py3-none-any.whl
| Download URL | base_converter_pedromagno-0.1.1-py3-none-any.whl |
|---|---|
| Size | 3.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d882a2f0c67cef0b33d4cc1a23c21e5747b73f8b36a234eb1cfa7fef18645692
|
|
BLAKE2b-256 checksum How to use checksums |
e2af7382dade46f2b6944bf25e7d74d534a7d68480aca911e94f2c76d682f2b1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.1
|
Security for base-converter-pedromagno 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.