convert
This module provides extra data conversion features between non-standard object types as well as different number bases.
Functions
- convert.hex_to_bytes(str)
- converts hexadecimal string of any length to bytes return bytes
- convert.decimal_to_hex(n: number)
- converts the given decimal based number to an hexadeccimal string return string
- convert.hex_to_decimal(str: string)
- converts the given hexadecimal string to a decimal base 10 number
- string must either contain the plain hexadecimal string or be in the format 0x[hex string].
return number
- convert.unicode_to_hex(chr: char)
- converts a unicode character to it’s equivalent hexadecimal string. return string