CDA-4101 Lecture 14 Notes



Scientific Notation for Real Numbers


Floating Point and Real Numbers


Floating Point Example

Col. 0 Col. 1 Col. 2 Col. 3 Col. 4 Col. 5 Col. 6
0 0.0000007 0.0005 0.3 100 80000 60000000
0.000000001 0.0000008 0.0006 0.4 200 90000 70000000
0.000000002 0.0000009 0.0007 0.5 300 100000 80000000
0.000000003 0.000001 0.0008 0.6 400 200000 90000000
0.000000004 0.000002 0.0009 0.7 500 300000 100000000
0.000000005 0.000003 0.001 0.8 600 400000 200000000
0.000000006 0.000004 0.002 0.9 700 500000 300000000
0.000000007 0.000005 0.003 1 800 600000 400000000
0.000000008 0.000006 0.004 2 900 700000 500000000
0.000000009 0.000007 0.005 3 1000 800000 600000000
0.00000001 0.000008 0.006 4 2000 900000 700000000
0.00000002 0.000009 0.007 5 3000 1000000 800000000
0.00000003 0.00001 0.008 6 4000 2000000 900000000
0.00000004 0.00002 0.009 7 5000 3000000 1000000000
0.00000005 0.00003 0.01 8 6000 4000000 2000000000
0.00000006 0.00004 0.02 9 7000 5000000 3000000000
0.00000007 0.00005 0.03 10 8000 6000000 4000000000
0.00000008 0.00006 0.04 20 9000 7000000 5000000000
0.00000009 0.00007 0.05 30 10000 8000000 6000000000
0.0000001 0.00008 0.06 40 20000 9000000 7000000000
0.0000002 0.00009 0.07 50 30000 10000000 8000000000
0.0000003 0.0001 0.08 60 40000 20000000 9000000000
0.0000004 0.0002 0.09 70 50000 30000000
0.0000005 0.0003 0.1 80 60000 40000000
0.0000006 0.0004 0.2 90 70000 50000000

Floating Point Example: Exceptions


More Realistic Floating Point


Normalized Numbers


Binary Scientific Notation


IEEE Standard 754


IEEE 754 Representations


IEEE 754 Special Cases


IEEE 754 Normalization


IEEE 754 Examples: Normalized Numbers


IEEE 75: Handling Errors


IEEE 75: Handling Underflow


IEEE 75: Handling Overflow


IEEE 754: Two Zeroes


IEEE 754: Not a Number (NaN)