Related Articles
ISRO | ISRO CS 2014 | Question 8
• Last Updated : 11 May, 2018

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?
(A) 5
(B) 6
(C) 7
(D) 8

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
taking log
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.

My Personal Notes arrow_drop_up