Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

numberConversion-0.3.tar.gz (1.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

numberConversion-0.3-py2-none-any.whl (2.4 kB view details)

Uploaded Python 2

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

Hashes for numberConversion-0.3.tar.gz
Algorithm Hash digest
SHA256 ba7b66764b3ded3b2ca5a32c622805f7040f3f5372f6cb8577dec9a3d7d6dc13
MD5 bd66ac9933d7d9c668a33d8c958af220
BLAKE2b-256 3e662c34fc5b170d8a54828e27ffb7a3a3da7dfd5a2e002013f9c7ed17eaecd7

See more details on using hashes here.

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

Hashes for numberConversion-0.3-py2-none-any.whl
Algorithm Hash digest
SHA256 5fc2d94c97d5da1dae9d6caee52be5d5682321edaff7750cdd168fb860f9e4c9
MD5 5c0e9124ddb1d026681f212187e6ce7d
BLAKE2b-256 9b70c9b35f235b3d23268d388ea890b4cfeb5b553ae77643aef0562b6cf49658

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page