In: Computer Science
1.The binary bit pattern 10011. Please give the number for this pattern represent in each of the following: ones complement integer, twos complement integer, unsigned integer, sign-magnitude integer, and fixed point factional number. (Please note that there will be two bits to the left of the binary points and three bits to the right)
Integer or Number representation in the computer system:
We can use three-way to represent a number in the computer system or binary system:
In the computer system for a positive number, all representation has the same format but negative number representation is different.
By default, a negative number is stored in 2's complement form in the computer system.
a) Signed magnitude Representation
In Signed Magnitude Representation, the first bit is used as a sign bit and all other bits are used to store the data.
b) One's complement Representation
In one's complement representation, a positive number is stored as it is but a negative number is stored in one's complement form.
c) Two's complement Representation
In two's complement representation, a positive number is stored as it is but a negative number is stored in two's complement form.
The given binary number is: 10011
The number in ones complement integer is = -12
The number in ones complement integer is = -13
The value of the unsigned integer is = 19
The value in sign-magnitude integer is = -3
The value in the fixed-point fractional number is = 2.3