Skip to main content

A package that converts between binary, hexadecimal, decimal and octal.

Project description

Binary/Hexadecimal/Decimal/Octal Conversion

This module allows you to convert binary, hexadecimal, decimal and octal (base16, base2, base10 and base8) numbers between one another.

The functions setup within this module are as follows:

Conversion from binary

binHex(number)
binDec(number)
binOct(number)

Conversion from hexadecimal

hexBin(number)
hexDec(number)
hexOct(number)

Conversion from decimal

decBin(number)
decHex(number)
decOct(number)

Conversion from octal

octBin(number)
octHex(number)
octDec(number)

How to use the functions properly
  1. Conversion from binary - You do not need to have at least 8 bits of information and you can have more than 8.
  2. Conversion from hexadecimal - You do not need to have "0x" before the hexadecimal value.
  3. Conversion from decimal - You can enter any integer you want.
  4. Conversion from octal - You do not have to have "0o" before the octal value.

Project details


Download files

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

Files for BinHexDecOctConversions, version 1.2
Filename, size File type Python version Upload date Hashes
Filename, size BinHexDecOctConversions-1.2-py3-none-any.whl (3.3 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size BinHexDecOctConversions-1.2.tar.gz (2.2 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page