How do I convert a hex substring to int
Posted: Wed Aug 11, 2021 10:23 pm
I have a hex string: and want to get the int value of mystr[44:46] - it should come to 18
In python I would dobut that doesn't work in MP. I've googled around but can only find python examples.
Code: Select all
mystr = b'FFF7E7FF704268426803FF380E53131212121312000012BB01BA3300008200016D9E00016C790000865D00008206003723630D016E0271027103E8'
In python I would do
Code: Select all
int(mystr[44:46],base=16)