Ask Question

What is the difference between signed and unsigned numbers in binary? Explain 2's complement numbers using a simple example.

+2
Answers (1)
  1. 11 April, 10:55
    0
    Signed numbers represent sign like positive or negative for a number. Unsigned numbers don't store any bit for sign

    Explanation:

    Signed numbers are the binary numbers where leftmost digit is used to store the sign and the remaining bits used to store the value (magnitude). if leftmost bit of binary number is 0 it is positive number and if it is 1 then it is a negative number

    ex: 00110101 represents (+53)

    Here 0 (leftmost) represents sign.

    Unsigned number is the number which don't have any sign bit. Here only positive numbers we will represent.

    ex:0110101 (53)

    2's complement: This is used to represent signed numbers. we will get 2's complement by inverting the bits of number and adding 1 to it

    0111 1110 for 2's complement first invert the number

    1000 0001 after inversion add 1 to it then we will get

    010000010
Know the Answer?
Not Sure About the Answer?
Find an answer to your question 👍 “What is the difference between signed and unsigned numbers in binary? Explain 2's complement numbers using a simple example. ...” in 📗 Computers & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers