Skip to main content

bindecocthex

bindecocthex is a Python library that provides a Conversion class for converting numbers between decimal, binary, octal, and hexadecimal representations.

Installation

You can install bindecocthex using pip:

pip install bindecocthex

Usage

from bindecocthex.conversion import Conversion

# Create an instance of the Conversion class
converter = Conversion()

# Example usage
decimal_number = 10

# Decimal to Binary
binary_representation = converter.decimal_to_binary(decimal_number)
print(f"Binary representation: {binary_representation}")

# Binary to Decimal
decimal_result = converter.binary_to_decimal(binary_representation)
print(f"Decimal result: {decimal_result}")

Methods

  • decimal_to_binary(number) Converts a decimal number to binary.

  • decimal_to_octal(number) Converts a decimal number to octal.

  • decimal_to_hexadecimal(number) Converts a decimal number to hexadecimal.

  • binary_to_decimal(number) Converts a binary number to decimal.

  • binary_to_octal(number) Converts a binary number to octal.

  • binary_to_hexadecimal(number) Converts a binary number to hexadecimal.

  • octal_to_decimal(number) Converts an octal number to decimal.

  • octal_to_binary(number) Converts an octal number to binary.

  • octal_to_hexadecimal(number) Converts an octal number to hexadecimal.

  • hexadecimal_to_decimal(number) Converts a hexadecimal number to decimal.

  • hexadecimal_to_binary(number) Converts a hexadecimal number to binary.

  • hexadecimal_to_octal(number) Converts a hexadecimal number to octal.

License

This project is licensed under the MIT License.

Release files for bindecocthex 0.4

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

Source distribution (sdist)

Source distribution for bindecocthex 0.4
File Size Uploaded
bindecocthex-0.4.tar.gz 2.8 kB Details

Built distribution (wheel)

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

Total release size: 7.0 kB

Release files / bindecocthex-0.4.tar.gz

Download URL bindecocthex-0.4.tar.gz
Size 2.8 kB
Tags Source
SHA-256 checksum
How to use checksums
d5fda9eb24fda19db6ccb9fdf6d0dcceb92df5ed0a7fa66872a44f67f5d1de45
BLAKE2b-256 checksum
How to use checksums
292e3a80f4c95a14d6db60a042b9975c89a50ae9a34a8ef62776bb4ae932a15d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.4

Release files / bindecocthex-0.4-py3-none-any.whl

Download URL bindecocthex-0.4-py3-none-any.whl
Size 4.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
16de77e7471a8ab095cdd00ddbb1ef6e89e342ac8c9621dcbe42ddfc5a2d6f82
BLAKE2b-256 checksum
How to use checksums
cfbc4283a90337e0de15a3cb5c56156f34964e2d36a5e0b9a61fba31cddf6a05
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.4

Release history Release notifications | RSS feed

This release

0.4 This release

2 release files

0.3

2 release files

0.2

2 release files

0.1

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