-$2^{8-1}-1$ why???? -$2^{8-1}$ to $2^{8-1}-1$ why not???

The Gateway to Computer Science Excellence

+1 vote

The range of the exponent is ___________ .

0 votes

32 bit means single precision floating point number

Where exponent will be of 8 bits

So, range of exponent will be $-2^{8-1}-1$ to $2^{8-1}$ i.e.$-127$ to $128$

Where exponent will be of 8 bits

So, range of exponent will be $-2^{8-1}-1$ to $2^{8-1}$ i.e.$-127$ to $128$

+1

@ srestha I think for the IEEE 754 binary32 case, an exponent value of 127 represents the actual zero (i.e. for 2^{e − 127} to be one, e must be 127).** Exponents range from −126 to +127 **because exponents of −127 (all 0s) and +128 (all 1s) are reserved for special numbers.

0

@ ankitgupta.1729 "The base of the scale factor is 16" means that exponent is raised to 16.

For example- (-1)^s * 1.M * 16^ (exponent-bias)

52,345 questions

60,487 answers

201,828 comments

95,294 users