function outData = TCtoDec(inData)

inData = uint32(inData);

Vref = 2.5;
LSB = Vref / (2^23 - 1);
ind = find(inData > hex2dec('7FFFFF'));

inData(ind) = bitcmp(inData(ind));
inData(ind) = bitand(hex2dec('00FFFFFF'), inData(ind));
outData = double(inData);
outData(ind) = -1 * (outData(ind) + 1);

outData = LSB * outData;

