Skip to main content

ENBC - Easy Number Base Conversion.

A simple Python library for converting numbers between different numeral systems.

Currently supports only two functions:

transform_from_decimal(number (int or float), base (int)) — converts a number from the decimal numeral system to the specified base.

transform_to_decimal(number (int or float), base (int)) — converts a number from the specified base to the decimal numeral system.

Example

import enbc

a = 54
b = 23.2

print(enbc.transform_from_decimal(a, 16))
print(enbc.transform_to_decimal(b, 8))

Output:

36
19.25

Release files for enbc 1.0.2

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

Source distribution (sdist)

Source distribution for enbc 1.0.2
File Size Uploaded
enbc-1.0.2.tar.gz 2.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for enbc 1.0.2
File Interpreter ABI Platform
enbc-1.0.2-py3-none-any.whl Python 3 none any Details

Total release size: 6.2 kB

Release files / enbc-1.0.2.tar.gz

Download URL enbc-1.0.2.tar.gz
Size 2.6 kB
Tags Source
SHA-256 checksum
How to use checksums
534fabbdc245a557b6ecf4ee759d9515732ae45591655a8dcf04957e1a1d283f
BLAKE2b-256 checksum
How to use checksums
b4fa988a8f649f3a9ad0c5d270fca3613d191d7937cae13d11768daaadc1666d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.5

Release files / enbc-1.0.2-py3-none-any.whl

Download URL enbc-1.0.2-py3-none-any.whl
Size 3.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d24658865297a112ce8c9431a0215089859fb779d5734a4872b2b6390490b389
BLAKE2b-256 checksum
How to use checksums
7e5afebfaa46f2b86df6083921ad0803bde29b75facd4c653c653e92d5dee43f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.5

Release history Release notifications | RSS feed

This release

1.0.2 This release

2 release files

1.0.1

2 release files

1.0.0

2 release files

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