edited by
11,360 views
36 votes
36 votes

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$ $\text{bit}$ for sign, $\text{8 bits}$ for biased exponent and $\text{23 bits}$ for the mantissa. A $\text{float}$ type variable $X$ is assigned the decimal value of $−14.25$. The representation of $X$ in hexadecimal notation is

  1. $\text{C1640000H}$
  2. $\text{416C0000H}$
  3. $\text{41640000H}$
  4. $\text{C16C0000H}$
edited by

5 Answers

3 votes
3 votes
Since No is negative S bit will be 1
Convert 14.25 into binary 1110.01
Normalize it : 1.11001 X 2 ^ 3
Biased Exponent (Add 127) : 3 + 127 = 130 (In binary 10000010)
Mantissa : 110010.....0 (Total 23 bits)

Num represented in IEEE 754 single precision format :

1 10000010 11001000000000000000000

In Hex (Group of Four bits) -

1100 0001 0110 0100 0000 0000 0000 0000

Num becomes : C1640000
Answer:

Related questions

33 votes
33 votes
3 answers
1
go_editor asked Sep 28, 2014
9,582 views
Consider the equation $(123)_5=(x8)_y$ with $x$ and $y$ as unknown. The number of possible solutions is _____ .
39 votes
39 votes
2 answers
2
29 votes
29 votes
1 answer
3