I have an array of hex positive and negetive numbers. I want to transform them to decimal value:
>>> int("f107",16)
61703
>>>
how can I make python to look f107
as a two's complemented number? In the other word I want -3833
instead of 61703
. How can I achieve it?