edited by
11,206 views
9 9 votes

In the standard $\text{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?

  1. $5$            
  2. $6$                    
  3. $7$                   
  4. $8$

4 Answers

Best answer
25 25 votes

Option C

Explanation

IEEE-754 Format   $(-1)^{S}  1.M^{E-127}$
$S \to \text{sign}$
$M \to \text{Mantissa}$
$E \to \text{Exponent}$

Precision is represented  by   ' 1.M '  where M is 23 bits and in total 24 bits are used for representing a precised number .

With 24 bits we can represent  $2^{24}$ numbers $(0 - 2^{24} -1).$  What is that value in decimal ?

Largest number that can be represented in any base $x$ is $x^{\text{no. of digits}} -1$ (starting from 0) . So,

$\text{base X}^{\text{no. of digits}} = \text{baseY}^{\text{no. of digits}}$

binary is base 2 and decimal is base 10

So, $2^{24} = 10^x$ . We need to find $x$

taking log  on both sides,

$\log_{2}2^{^{24}}$ = $\log_{2}10^{^{x}}$

$24=x \log_{2}10$

$x=7.22$

so we need minimum 7 digits in decimal

selected by
8 8 votes
Precision is the number of digits we can represent accurately.

$1.2 \times 10^8$ - precision is just 2 and rest we have 8 zeroes which might not be accurate.

So, in IEEE 754 floating point representation we have 23 precision bits and we also have one implied bit before '.' making it 24 precision bits. With 24 bits we can represent $\lfloor 24 \log 2 \rfloor = 7$ decimal digits.
6 6 votes

In IEEE 754 single precision format, the precision is 24 bits or 7 decimal digits. ($24 *log_{10}(2) ≈ 7.22$)

In IEEE 754 double precision format, the precision is 53 bits or 15 decimal digits. ($53 *log_{10}(2) ≈ 15.95$)

Notice that in bits, the precision is $|Mantissa| + 1$

Answer:
Position:
Show:

Related questions

9 9 votes
4 answers 4 answers
8.9k
8.9k views
jenny101 asked Jun 14, 2016
8,937 views
How many different $\text{BCD}$ numbers can be stored in $12$ switches ? (Assume two position or on-off switches).$2^{12}$$2^{12}-1$$10^{12}$$10^3$
49 49 votes
6 answers 6 answers
17.3k
17.3k views
go_editor asked Sep 28, 2014
17,338 views
The value of a $\text{float}$ type variable is represented using the single-precision $\text{32-bit}$ floating point format of $\text{IEEE-754}$ standard that uses $1$ $\...
12 12 votes
1 answers 1 answer
9.6k
9.6k views
go_editor asked Jun 21, 2016
9,635 views
What is the decimal value of the floating-point number $C1D00000$ (hexadecimal notation)? (Assume $32$-bit, single precision floating point $\text{IEEE}$ representation)$...
21 21 votes
6 6 answers
10.8k
10.8k views
Arjun asked Feb 27, 2025
10,789 views
Three floating point numbers $X, Y$, and $Z$ are stored in three registers $\mathrm{R}_{\mathrm{X}}, \mathrm{R}_{\mathrm{Y}}$, and $\mathrm{R}_{\mathrm{Z}}$, respectively...