1,229 views
9 votes
9 votes
The decimal value of 0.005 in single precision floating point format is __________________

2 Answers

Best answer
2 votes
2 votes

0.005

To calculate its binary equivalent

0.005 x 2 0
0.01 x 2  0
0.02 x 2 0
0.04 x 2 0
0.08 x 2 0
0.16 x 2  0
0.32 x 2 0
0.64 x 2  1
0.28 x 2  0
0.56 x 2  1
0.12 x 2  0
0.24 x 2 0
0.48 x 2 0
0.96 x 2 1
0.92 x 2 1
0.84 x 2 1
0.68 x 2 1
0.36 x 2 0
0.72 x 2 1
0.44 x 2 0
0.88 x 2 1
0.76 x 2 1
0.44 x 2 0
0.88 x 2 1
0.76 x 2 1
0.52 x 2 1
0.04 x 2 REPEAT

Binary Equivalent of 0.005 = 00000001010001111010111

also can be written as 1.010001111010111 x 2-8

Hence in IEEE single precision (exponent) = 127-8 = 119 = 01110111

Mantissa = 01000111101011100001010 (23 bits)

Sign Bit(1) Exponent(8) Fraction(23)
0 01110111 01000111101011100001010
selected by

Related questions

5 votes
5 votes
0 answers
1
Manu Thakur asked Jan 14, 2018
1,172 views
Can someone please validate if the given range is correct, and we can keep all 0's in Mantissa unlike biased exponent.
0 votes
0 votes
0 answers
3
2 votes
2 votes
1 answer
4
Raja Rawal asked Jan 14, 2019
973 views
how to solve this