If by “hex data” you mean a string of the form
s = "6a48f82d8e828ce82b82"
you can use
i = int(s, 16)
to convert it to an integer and
str(i)
to convert it to a decimal string.
More Related Contents:
- Convert hex to float
- Python convert decimal to hex
- Convert hex string to int in Python
- What’s the correct way to convert bytes to a hex string in Python 3?
- range() for floats
- Print a string as hexadecimal bytes
- Python Decimals format
- Easy way of finding decimal places
- Converting an RGB color tuple to a hexidecimal string
- How to convert a decimal number into fraction?
- Convert hex to binary
- Convert bytes to bits in python
- Convert hex string to integer in Python
- Convert from ASCII string encoded in Hex to plain ASCII?
- OverflowError: (34, ‘Result too large’)
- How to convert an int to a hex string?
- How to efficiently handle European decimal separators using the pandas read_csv function?
- Add zeros to a float after the decimal point in Python
- hex/binary string conversion in Swift
- How to create python bytes object from long hex string?
- Bitwise XOR of hexadecimal numbers
- Clarification on the Decimal type in Python
- What’s 0xFF for in cv2.waitKey(1)?
- drop trailing zeros from decimal
- Why do I get “OverflowError: (34, ‘Result too large’)” or “OverflowError: (34, ‘Numerical result out of range’)” from floating-point exponentiation?
- Hex string to signed int in Python
- Python Hexadecimal
- Python to JSON Serialization fails on Decimal [duplicate]
- How to get largest possible precision? (Python – Decimal)
- Python “decimal” package gives wrong results