A simple package to convert decimal to binary and binary to decimal
Project description
numberConversion
A simple Python package for converting binary to decimal and decimal to binary.
Installation
Install the package using pip:
pip install numberConversion
Usage
Convert Binary to Decimal
from numberConversion import binaryToDecimal
binary_number = "1010" decimal_number = binaryToDecimal(binary_number) print(decimal_number) # Output: 10
Convert Decimal to Binary
from numberConversion import decimalToBinary
decimal_number = 10 binary_number = decimalToBinary(decimal_number) print(binary_number) # Output: "1010"
License
This package is licensed under the MIT License.
Project details
Release history Release notifications | RSS feed
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 numberConversion-0.3.tar.gz.
File metadata
- Download URL: numberConversion-0.3.tar.gz
- Upload date:
- Size: 1.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.15.0 pkginfo/1.8.3 requests/2.27.1 setuptools/44.1.1 requests-toolbelt/1.0.0 tqdm/4.64.1 CPython/2.7.18
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ba7b66764b3ded3b2ca5a32c622805f7040f3f5372f6cb8577dec9a3d7d6dc13
|
|
| MD5 |
bd66ac9933d7d9c668a33d8c958af220
|
|
| BLAKE2b-256 |
3e662c34fc5b170d8a54828e27ffb7a3a3da7dfd5a2e002013f9c7ed17eaecd7
|
File details
Details for the file numberConversion-0.3-py2-none-any.whl.
File metadata
- Download URL: numberConversion-0.3-py2-none-any.whl
- Upload date:
- Size: 2.4 kB
- Tags: Python 2
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.15.0 pkginfo/1.8.3 requests/2.27.1 setuptools/44.1.1 requests-toolbelt/1.0.0 tqdm/4.64.1 CPython/2.7.18
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5fc2d94c97d5da1dae9d6caee52be5d5682321edaff7750cdd168fb860f9e4c9
|
|
| MD5 |
5c0e9124ddb1d026681f212187e6ce7d
|
|
| BLAKE2b-256 |
9b70c9b35f235b3d23268d388ea890b4cfeb5b553ae77643aef0562b6cf49658
|