>>4
Ok I grasp 2's complement, and going from binary to dec and then to hex is fairly easy, but going from binary to hex is confusing me because of the signing. I take it that like binary there's no way to tell if a hex/oct value is signed or not just by inference?
>>7
I spoke with my tutor about it today, and he confirmed that the correct answer was indeed F1. To expand on my question a bit further (no pun intended), I'm trying to convert a signed decimal in the range -128 to +127 to hex/octal without converting to bin first. Later I also have to go from signed bin to signed dec/hex/oct, which is where the '-' sign would have been handy because i was just doing 'if dec value < 0 then ("-".concat(octal value))'. But i take it the correct way is 'if dec value < 0 then (0-(0.5*range))+octal value'?
I think part my confusion stems from the poor wording of the exercise: the previous part asked for unsigned dec to hex in range 0-127, when i noticed that the same formula also worked for negative values i started to trip out about adding the '-' sign.