|
|
||
| 2. Why binary? |
|
|
|
||
|
|
||
| 3. Limitations |
|
|
|
||
|
|
||
| 4. Floating point number representation |
|
|
|
||
|
|
||
| 5. Floating point number representation 2 |
|
|
|
||
|
|
||||||||||||||||||||||||||||
| 6. diagram |
|
|||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||
|
|
||||||||||
| 7. Example 1 |
|
|||||||||
|
||||||||||
|
|
||||||||||
| 8. Example 2 |
|
|||||||||
|
||||||||||
|
|
||
| 9. Binary representation of decimal numbers |
|
|
|
||
|
|
||
| 10. Example 3.1 |
|
|
|
||
|
|
||
| 11. Example 3.2 |
|
|
|
||
|
|
||
| 12. Binary representation of decimal numbers 2 |
|
|
|
||
|
|
||
| 13. Example 4.1 |
|
|
|
||
|
|
||
| 14. Example 4.2 |
|
|
|
||
|
|
||
| 15. Example 5.1 |
|
|
|
||
|
|
||
| 16. Example 5.2 |
|
|
|
||
|
|
||
| 17. Binary representation of decimal numbers 3 |
|
|
|
||
|
|
||
| 18. Example 6.1 |
|
|
|
||
|
|
||
| 19. Example 6.2 |
|
|
|
||
|
|
||
| 20. Example 6.3 |
|
|
|
||
|
|
||
| 21. Example 6.4 |
|
|
|
||
|
|
||
| 22. Example 6.5 |
|
|
|
||
|
|
||
| 23. Example 7.1 |
|
|
|
||
|
|
||
| 24. Example 7.2 |
|
|
|
||
|
|
||
| 25. Example 7.3 |
|
|
|
||
|
|
||
| 26. Example 7.4 |
|
|
|
||
|
|
||
| 27. Example 7.5 |
|
|
|
||
|
|
||
| 28. Example 8.1 |
|
|
|
||
|
|
||
| 29. Example 8.2 |
|
|
|
||
|
|
||
| 30. Example 9.1 |
|
|
|
||
|
|
||
| 31. Example 9.2 |
|
|
|
||
x = f * 10E
125.32 = 0.12532 * 103
-125.32 = -0.12532 * 103
0.65 = 0.65 * 100
| sign of mantissa | sign of exponent | ||||||||
| d1 | d2 | d3 | d4 | d5 | d6 | d7 | d8 | ||
| digits of mantissa | digits of exponent | ||||||||
| 0 | 1 | 2 | 5 | 3 | 0 | 0 | 3 |
| 1 | 3 | 2 | 5 | 5 | 1 | 0 | 1 |
43/2 = 21 + 1 5/2 = 2 + 1
21/2 = 10 + 1 2/2 = 1 + 0
10/2 = 5 + 0 1/2 = 0 + 1
101011 = 43. (32 + 8 + 2 + 1 = 43)
.625 x 2 = 1.250 (extract the 1)
.250 x 2 = 0.500 (extract the 0)
.500 x 2 = 1.000 (extract the 1)
Ans: .1001100110011...
Ans: .10011001
.10011001
1.00110010
0.828 1.656 1.312 0.624 1.248 0.496
0.992 1.984 1.968 1.936 1.872 1.744
1.488 0.976 1.952
1.0110 1001 1111 101
.1100 1001 0000 1111 x 22
sm = 0; m = 11011100000; se = 0; e = 100