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 |