What is the smallest floating point number that can be represented using a 32-bit word?

Ngô Thị Vân

New member
What is the smallest floating point number that can be represented using a 32-bit word?
A. 3*10$^{-38}$
B. 2*10$^{-38}$
C. 0.2*10$^{-38}$
D. 0.3*10$^{-38}$
 
Answer: d
Explanation: Let the mantissa be represented by 23 bits plus a sign bit and let the exponent be represented by 7 bits plus a sign bit.
Thus, the smallest floating point number that can be represented using the 32 bit number is
(1/2)*2$^{-127}$=0.3*10$^{-38}$
Thus, the smallest floating point number that can be represented using the 32 bit number is
(1-2$^{-23}$)*2$^{127}$=1.7*10$^{38}$.
 

Tìm kiếm

Back
Top