目录
Background: Fractional binary numbers
IEEE floating point standard: Definition
Rounding, addition, multiplication
Background: Fractional binary numbers
p3 | ---What is 1011.101(2)? |
p4 | ---Representation |
p5 | ---Value Representation ---Observations |
p6 | ---Limitation #1 ---Limitation #2 |
IEEE floating point standard: Definition
p8 | IEEE Floating Point ---Driven by numerical concerns |
p9 | ---Numerical Form ---Encoding |
p10 | Precision options ---Single precision: 32 bits ---Double precision: 64 bits ---Extended precision: 80 bits (Intel only) |
p11 | “Normalized” Values |
p12 | Normalized Encoding Example ---Value: float F = 15213.0; ---Significand ---Exponent ---Result: |
p13 | Denormalized Values |
p14 | Special Values |
p15 | Visualization: Floating Point Encodings |
Example and properties
p17 | Tiny Floating Point Example ---Same general form as IEEE Format |
p18 | Dynamic Range (Positive Only) |
p19 | Distribution of Values ---Notice how the distribution gets denser toward zero. |
p20 | Distribution of Values (close-up view) --6-bit IEEE-like format |
p21 | Special Properties of the IEEE Encoding ---Can (Almost) Use Unsigned Integer Comparison |
Rounding, addition, multiplication
p23 | Floating Point Opera.ons: Basic Idea |
p24 | Rounding Modes (illustrate with $ rounding) |
p25 | Closer Look at Round-To-Even ---Applying to Other Decimal Places / Bit Positions |
p26 | Rounding Binary Numbers ---Examples |
p27 | FP Multiplication |
p28 | Floating Point Addition |
p29 | Mathematical Properties of FP Add ---Compare to those of Abelian Group ---Monotonicity |
p30 | Mathematical Properties of FP Mult ---Monotonicity |
Floating point in C
p32 | Floating Point in C ---Conversions/Casting |
p33 | Floating Point Puzzles ---For each of the following C expressions, either: |
Summary
p34 | ---IEEE Floating Point has clear mathematical properties ---Represents numbers of form M x 2E ---One can reason about operations independent of ---Not the same as real arithmetic |
Additional Slides
p36 | Creating Floating Point Number ---Case Study |
p37 | Normalize ---Requirement |
p38 | Rounding ---Round up conditions |
p39 | Postnormalize ---Issue |
p40 | Interesting Numbers |