List three ways by which signed binary integers can be represented in a computer architecture.
Ans) Now the 3 ways to represent signed numbers in computer are:-
1) The sign-magnitude binary format :- It all depends on maximum
significant bit i.e. MSD.
So there are 2 factors:-
a) if MSD is 0 than it is signed as positive one.
b) if MSD is 1 than it is signed as negative one.
2) One’s Complement representation:- It represents positive numbers by their binary equivalents and negative numbers by their 1’s complements. To calculate 1’s complement, replace every 0 with 1 and every 1 with 0.
3) Two’s Complement representation:- It represents positive numbers by their binary equivalents and negative numbers by their 2’s complements. To calculate 2’s complement, add 1 to its 1’s complement.
Get Answers For Free
Most questions answered within 1 hours.