I have, lets say, 8 bits mantissa and 4 bit exponent. Then,
-1=1111 1111
there are no 0s so how can I normalise -1 in 2's complement form?
Computer Science Stack Exchange is a question and answer site for students, researchers and practitioners of computer science. It only takes a minute to sign up.
Sign up to join this communityI have, lets say, 8 bits mantissa and 4 bit exponent. Then,
-1=1111 1111
there are no 0s so how can I normalise -1 in 2's complement form?
Sorry, I found out the answer myself. It is 1000 000
manitssa and 0000
exponent.
for mantissa, 1.000 0000 = -128 *power(2,-7)
.
for exponent, 0000 = 0
.
So, result= -128 * power(2,-7)
1000 000
manitssa and0000
exponent. for mantissa,1.000 0000 = -128 *power(2,-7)
. for exponent,0000 = 0
. So,result= -128 * power(2,-7) = -1
. $\endgroup$ – Damodar Dahal May 27 '14 at 6:40