retagged by
579 views
1 votes
1 votes

The number $0.085$ represented in $IEEE-754$ single-precision format will be:

  1.   $0 01111011 01111100001010001111011$
  2.   $0 01111011 01011100001010001111011$
  3.   $0 01111011 01010100001010000111011$
  4.   $0 01111011 01111100001010001111011$
retagged by

2 Answers

Best answer
6 votes
6 votes

$\begin{align}0.085 \times 2 &= 0.17  \to 0 \\ 0.17 \times 2 &= 0.34 \to 0\\
0.34 \times 2 &= 0.68 \to 0 \\
0.68 \times 2 &= 1.36 \to 1\\
0.36 \times 2 &= 0.72 \to 0\\
0.72 \times 2 &= 1.44 \to 1\\
0.44 \times 2 &= 0.88 \to 0\\
0.88 \times 2 &= 1.76 \to 1\\
0.76 \times 2 &= 1.52 \to 1\end{align}$

So, $0.085_{10} = (0.000101011\dots)_2$
$=1.01011 \times 2^{-4}$ (normalized form)

In IEEE 754 representation, we skip the leading 1 and also the exponent has a bias of +127 for single precision. So, here the mantissa will be $0.01011\dots$ and exponent is $-4+127 = 123_{10} = (1111011)_2 = (01111011)_2$ (exponent is of 8 bits in IEEE 754 representation).

So, the only option matching is B.

Ref: http://steve.hollasch.net/cgindex/coding/ieeefloat.html

selected by
2 votes
2 votes

option B

Answer:

Related questions

3 votes
3 votes
3 answers
2
Bikram asked May 14, 2017
482 views
A student reaches school 15 minutes early by running at a speed of 5 km/h from his house. By walking at 3 km/h, he is late by 9 minutes. The distance between the school a...
3 votes
3 votes
2 answers
4
Bikram asked May 14, 2017
425 views
59 151629 ?4989 147 $$\begin{array}{|c|c|c|} \hline 5 & 9 & 15 \\ \hline 16 & 29 & ? \\ \hline 49 & 89 & 147 \\ \hline \end{array}$$The missing number is ________.