I'm having some trouble converting negative numbers in the log data of an Ethereum transaction. In this transaction, log index 192, topic 3 is listed as "0xffffffffffffffffffffffffffffffffffffffffffffffdb9a1221071741566a".

Ethtx converts that hex value into a decimal of -671.4275583814931.

I'm struggling to replicate the conversion of the hexadecimal value to a negative decimal value. So far:
- I can't find any functions in the Ethers.js and Web3.js libraries that convert to the right amount.
- Even just using an online tool, the hex value yields an output of 115792089237316195423570985008687907853269984665640564038786156449531636569706, which isn't correct.
Are there any libraries that would convert this hex value into the correct negative decimal?
Unpack, here is golangs: https://ethereum.stackexchange.com/questions/29809/how-to-decode-input-data-with-abi-using-golang – Nulik Feb 05 '21 at 19:24