I am trying to convert hex data to signed int/decimal and can't figure out what I'm doing wrong.
I need FE
to turn into -2
.
I'm using Convert.ToInt32(fields[10], 16)
but am getting 254
instead of -2
.
Any assistance would be greatly appreciated.