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
Please note that it is ConvClient and not ConvClient()
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.4.tar.gz
(3.7 kB
view hashes)
Built Distribution
Close
Hashes for pyinterconvert-0.1.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9b22a7b7488a61f917a345b9c32c4abad33a71c9e17d1e769ade57f7904427d0 |
|
MD5 | 6fa3399fffbc1b07725a1c777f0edd0d |
|
BLAKE2b-256 | 5802bac478caa347e678785b0c17bc191f2157e9c9214e2c3bb82f3ff9b35959 |