MAT104 Lectures 105056
MAT104 Lectures 105056
The formula to convert binary number system into decimal can be represented by,
The exponential part of the number is, therefore, 21027-1023 = 24. The final 52 bits specify that
the mantissa is
1 1 1 3 1 4 1 5 1 8 1 12
f=1 ∙ 2
+ 1 ∙ 2
+ 1 ∙ 2
+ 1 ∙ 2
+ 1 ∙ 2
+ 1 ∙ 2
= 27.56640625
NOTE:
The smallest normalized positive number that can be presented has s = 0, c = 1, and f = 0 is
equivalent to
2-1022 ∙ (1 + 0) ≈ 0.22251 x 10-307
and the largest has s = 0, c = 2046 and f = 1 – 2-52 and is equivalent to
21023 ∙ (2 + 2-52) ≈ 0.17977 x 10309
Number occurring in calculation that have a magnitude less than 2-1022 ∙ (1 + 0). Result in
underflow and are generally set to zero. Number greater than 21023 ∙ (2 + 2-52) result in
overflow and typically cause the computation to stop.
Exercise 1
Directions: Transform the following binary machine number into floating point numbers.
1) 0 00110010111 0010010101010100000010100000000000000000000000000000
2) 1 10101010101 1111100101001100000000000000000000000000000000000000
3) 0 11100100011 0000000111100010100010000000000000000000000000000000
4) 0 01010101001 0010101100010011011000000000000000000000000000000000
5) 1 11100000111 1111000000100110000010000000000000000000000000000000
6) 1 10110101111 1010000101011000000100000000000000000000000000000000