semvec/pypi-packages huggingface dataset:
cnvrtr 1.1.1
Different functions to convert between hex, dec bin etc.
License: MIT

# Description

Different functions to convert between hex, dec, bin, ascii etc.

# Installation

`pip install cnvrtr`

# Usage


```python

from cnvrtr.Converter import Converter

cnvrtr = Converter(nonAsciiPlaceholder=".")

leHex = cnvrtr.toLittleEndian("af d0 fe")
# fed0af

hexToBin = cnvrtr.hexToBin("fed0af")
# 111111101101000010101111

hexToDec = cnvrtr.hexToDec("fed0af")
# 16699567

binToDec = cnvrtr.binToDec("11010101")
# 213

decToAscii = cnvrtr.decToAscii(65)
# A

hexToAsciiString = cnvrtr.hexToAsciiString("68656c6c6f20776f726c64")
# hello world

hexToAsciiString = cnvrtr.hexToAsciiString("68656c6c6f20016f726c64")
# hello .orld

```


# License

MIT