I have this hexstr 0xfffffffffffffffffffffffffffffffffffffffffffffffffffdf05d84162877
, in decimal terms it should give -580140491462537
. However doing the below leads to bad answers. Can someone help?
In: test = '0xfffffffffffffffffffffffffffffffffffffffffffffffffffdf05d84162877'
In: int(test,16)
Out: 11579208923731619542357098500868790785326998466564056403945758342777263817739