A package for binary, decimal, octal, and hexadecimal conversions
Project description
bindecocthex
bindecocthex is a Python package that provides functionality for converting between decimal, binary, octal, and hexadecimal number representations.
Installation
You can install bindecocthex using pip:
pip install bindecocthex
Usage:
To use bindecocthex in your Python code, you can create an instance of the bindecocthex class and call its conversion methods. Here's a simple example:
from bindecocthex import bindecocthex
# Create an instance of bindecocthex
bdoh = bindecocthex()
# Convert decimal to binary
binary_result = bdoh.decimal_to_binary(42)
print("Decimal to Binary:", binary_result)
# Convert binary to decimal
decimal_result = bdoh.binary_to_decimal("101010")
print("Binary to Decimal:", decimal_result)
# Convert decimal to octal
octal_result = bdoh.decimal_to_octal(42)
print("Decimal to Octal:", octal_result)
# ... (similarly for other conversions)
# Main function (optional)
bdoh.main()
License
This project is licensed under the MIT License
Project details
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file bindecocthex-0.3.tar.gz.
File metadata
- Download URL: bindecocthex-0.3.tar.gz
- Upload date:
- Size: 2.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
706e8902722447402190ec8b4c14bc82fbdc5a0d4ba5e899c2164c467ed89e92
|
|
| MD5 |
208727b9cc05df6623041dcbe573e24a
|
|
| BLAKE2b-256 |
124629eda7ba5d77c826b88c5ddf1469076995e447bb621e4218b4856f4becd9
|
File details
Details for the file bindecocthex-0.3-py3-none-any.whl.
File metadata
- Download URL: bindecocthex-0.3-py3-none-any.whl
- Upload date:
- Size: 2.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
787380d5c3cdda16386cbc042023f9cf449a4874a60a0c39ac6dadbf62f2b718
|
|
| MD5 |
0bd53be78caab255a2f3a2f3fd207401
|
|
| BLAKE2b-256 |
b751722f46cf58565e55263bd605923f1fb7a503c0fd93ae0e65d0c7495ea454
|