python <[email protected]> writes: > What to decode hex '0xC0A8' and return signed short int.
Is this right?
n = int('0xC0A8', 16)
if n >= 0xffff:
n -= 0x10000
--
http://mail.python.org/mailman/listinfo/python-list
python <[email protected]> writes: > What to decode hex '0xC0A8' and return signed short int.
Is this right?
n = int('0xC0A8', 16)
if n >= 0xffff:
n -= 0x10000
--
http://mail.python.org/mailman/listinfo/python-list