Skip to main content

A simple tool for interconversion between binary, decimal, octal and hexadecimal

Project description

PyInterconvert

A simple tool for interconversion of binary, decimal, hexadecimal and octal

Current functions

  • BinToDec
  • BinToOct
  • BinToHex
  • DecToBin
  • DecToOct
  • DecTohex
  • HexToBin
  • OctToBin

For other Hexadecimal and Octal conversions the given functions can be used together as follows:-

BinToDec(HexToBin(arg)) #Hexadecimal to Decimal
BinToOct(HexToBin(arg)) #Hexadecimal to Octal
BinToDec(OctToBin(arg)) #Octal to Decimal
BinToHex(OctToBin(arg)) #Octal to Hexadecimal

Arg is of type string

Sample Usage

from pyinterconvert import ConvClient

c = ConvClient()

print(c.BinToOct(1010101))
#prints 125

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

pyinterconvert-0.1.5.tar.gz (3.8 kB view hashes)

Uploaded Source

Built Distribution

pyinterconvert-0.1.5-py3-none-any.whl (3.8 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