In: Computer Science
if hexadecimal number FF16 represent a signed number in one's compliments, what the decimal representation of that number? include the sign for that number with no spaces between the number and sign. for example -3 or +3
FF16
Answer: -0 Explanation: ------------- Let's first convert FF to binary Hexadecimal Binary 0 0000 1 0001 2 0010 3 0011 4 0100 5 0101 6 0110 7 0111 8 1000 9 1001 A 1010 B 1011 C 1100 D 1101 E 1110 F 1111 Use this table to convert from hexadecimal to binary Converting FF to binary F => 1111 F => 1111 So, in binary FF is 11111111 Now, let's convert 11111111 to one's complement decimal since left most bit is 1, this number is negative number. so, follow these steps below to convert this into a decimal value. I. first flip all the bits. Flip all 0's to 1 and all 1's to 0. 11111111 is flipped to 00000000 II. Now convert this result to decimal value 00000000 in decimal is 0. It's indicated that this is a negative number. Answer: -0