2,389 views
1 votes
1 votes
What would be the bias value for

a. A base-2 exponent in a 6-bit field?

 b. A base-8 exponent in a 7-bit field?

1 Answer

1 votes
1 votes

I assume that the exponent value is represented as 2's complement.

the bias value is a number which will be added to actual exponent to make the n-bit exponent to lie in the range (0 to 2n - 1).

i.e., for 8 bits, the exponent shall be from 0 to 255.

Since the actual range of 8 bit signed integers is -128 to +127, we need to add +128 to exponent to bring the range to 0 to +255. So +128 is the bias value for 8 bit exponent.

In similar way,

1) for 6 bits, the actual range is -32 to +31. so bias value is +32.

2) for 7 bits, the actual range is -64 to +63. so bias value is +64. in base-8, 080.

Related questions

1 votes
1 votes
0 answers
1
A_i_$_h asked Nov 11, 2017
591 views
in floating point representation we represent exponent as2E-biashow is this bias value found?some places we use 8 , 16 , 64 etc