+1 vote
145 views
IN FLOATING POINT REPRESENTATION WE KNOW THAT BIAS ADDED IS THE MAXIMUM NUMBER WHICH CAN BE REPRESENTED IN 2S COMPLEMENT.

Suppose exponent is represented using 8 bits, so bias added= (2^7)-1=127. But the max negative number representable with 8 bits is -128 and adding 127 will  make it -1, which is certainly negative. So how do we get postitive exponent by biassing in this case??.

It sounds confusing to me. Plz resolve my confusion.
Range of 2s complement is -128 to 127.

with n bits range of 2s complement is - 2^(n-1) to - 2^(n-1) -1

our only goal is to make every no either 0 or positive..if u have -128 or anything from -128 to 127..just add 128..means add positive of the maximum negative no as bias..

@ sudsho, so bias should be 128 right?? but everywhere it is written one less that is 127 even in the 2016 digital discussion. plz clear this.
it should be 128 only ...else how 127 will take care of -128
what you said sounds completely logical. I also learned that that only. But from internet and everywhere got confused.
if they are using 127 as bias means their maximum negative no possible cant be more than -127..must be some modifications with range has been done..whatever it is we have to add positive to max negative no possible to make every no as 0 or +ve
Thanx @ Sudsho :)