In the standard IEEE 754 single precision floating point representation, there is 1 bit for sign, 23 bits for fraction and 8 bits for exponent. What is the precision in terms of the number of decimal digits?
Explanation: Precision can be understood as the maximum accuracy through which a floating point number can be represented.
It is the smallest change that can be represented in floating point representation. The fractional part of a single precision normalized number has exactly 23 bits of resolution, (24 bits with the implied bit).
In terms of decimal representation:
let the number of digits in decimal digits be ‘x’
2-23 = 10-x
log210-x = -23
-x log210 = -23
-3.322 x = -23
x = 6.92
So, correct answer is (C)
Quiz of this Question
Attention reader! Don’t stop learning now. Get hold of all the important DSA concepts with the DSA Self Paced Course at a student-friendly price and become industry ready.