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.

Source Distribution

BinHexDecOctConversions-1.2.tar.gz (2.2 kB view hashes)

Uploaded Source

Built Distribution

BinHexDecOctConversions-1.2-py3-none-any.whl (3.3 kB view hashes)

Uploaded Python 3

Supported by

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