Floating Point Representation
Floating Point Representation
Example:
Number Mantissa Base Exponent
3 x 106 3 10 6
Floating Point Number Representation
IN IEEE
It has Two types
1.1110110111 x 26 + 0.0011110101 x 26
(1.1110110111 + 0.0011110101) x 26
Floating Point Addition(32Bit)
1.1110110111
+ 0.0011110101
10.0010101100
10.0010101100 x 26
(1.N) 2E-127
E-127 = 6
E = 133
Floating Point Addition(32Bit)
E = (10000101)2
1.001000 x 22 - 0.0000100 x 22
(1.001000 - 0.0000100) x 2 2
Floating Point Subtraction(32Bit)
1.0010000
- 0.0000100
1.0001100
1.0001100 x 22
(1.N) 2E-127
E-127 = 2
E = 129
Floating Point Subtraction(32Bit)
E = (10000001)2
Sign 0 Exponent
10000001 Mantissa
0001100------0