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)
Built Distribution
Close
Hashes for pyinterconvert-0.1.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 101ba07e9c92c4e1a95f9a2e0134d7d453425cc786732371ee86a18e1f499bda |
|
MD5 | ad68da386f09ee3b790218439abdf36d |
|
BLAKE2b-256 | 0485c67d8160efd5cec4e11f0e19e8bea8bec0fc4dae9c50d5851d087f0d72c8 |