Presentation is loading. Please wait.

Presentation is loading. Please wait.

Tanenbaum, Structured Computer Organization, Fifth Edition, (c) 2006 Pearson Education, Inc. All rights reserved. 0-13-148521-0 Floating-point Numbers.

Similar presentations


Presentation on theme: "Tanenbaum, Structured Computer Organization, Fifth Edition, (c) 2006 Pearson Education, Inc. All rights reserved. 0-13-148521-0 Floating-point Numbers."— Presentation transcript:

1 Tanenbaum, Structured Computer Organization, Fifth Edition, (c) 2006 Pearson Education, Inc. All rights reserved Floating-point Numbers Appendix B

2 Tanenbaum, Structured Computer Organization, Fifth Edition, (c) 2006 Pearson Education, Inc. All rights reserved Principles of Floating Point (1) Must separate range from precision Use scientific notation n = f × 10 e f is the fraction or mantissa e is the exponent (a positive or negative integer) Examples 3.14 = × 10 1 = 3.14 × = 0.1 × 10 −5 = 1.0 × 10 − = × 10 4 = × 10 3

3 Tanenbaum, Structured Computer Organization, Fifth Edition, (c) 2006 Pearson Education, Inc. All rights reserved Principles of Floating Point (2) Seven Regions of Real Number Line Large negative numbers less than −0.999 × Negative numbers between −0.999 × 1099 and −0.100 × 10 −99. Small negative numbers, magnitudes less than × 10− 99. Zero. Small positive numbers, magnitudes less than × 10 −99. Positive numbers between × 10 −99 and × Large positive numbers greater than ×

4 Tanenbaum, Structured Computer Organization, Fifth Edition, (c) 2006 Pearson Education, Inc. All rights reserved Principles of Floating Point (3) The real number line can be divided into seven regions.

5 Tanenbaum, Structured Computer Organization, Fifth Edition, (c) 2006 Pearson Education, Inc. All rights reserved Principles of Floating Point (4) The approximate lower and upper bounds of expressible (unnormalized) floating-point decimal numbers.

6 Tanenbaum, Structured Computer Organization, Fifth Edition, (c) 2006 Pearson Education, Inc. All rights reserved IEEE Floating-point Standard 754 (1) Examples of normalized floating-point numbers.

7 Tanenbaum, Structured Computer Organization, Fifth Edition, (c) 2006 Pearson Education, Inc. All rights reserved IEEE Floating-point Standard 754 (2) Examples of normalized floating-point numbers.

8 Tanenbaum, Structured Computer Organization, Fifth Edition, (c) 2006 Pearson Education, Inc. All rights reserved IEEE Floating-point Standard 754 (3) IEEE floating-point formats. (a) Single precision. (b) Double precision.

9 Tanenbaum, Structured Computer Organization, Fifth Edition, (c) 2006 Pearson Education, Inc. All rights reserved IEEE Floating-point Standard 754 (4) Characteristics of IEEE floating-point numbers.

10 Tanenbaum, Structured Computer Organization, Fifth Edition, (c) 2006 Pearson Education, Inc. All rights reserved IEEE Floating-point Standard 754 (5) IEEE numerical types.


Download ppt "Tanenbaum, Structured Computer Organization, Fifth Edition, (c) 2006 Pearson Education, Inc. All rights reserved. 0-13-148521-0 Floating-point Numbers."

Similar presentations


Ads by Google