1 / 7

Dr. Konstantinos Tatas

Dr. Konstantinos Tatas. FLOATING-POINT NUMBER REPRESENTATION. The range/accuracy problem. The range of numbers that can be represented with n bits is In 2’s complement: from - /2 to /2 -1 For n=8: From –128 to +127 For n=16: From –32,768 to +32,767

portia
Download Presentation

Dr. Konstantinos Tatas

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Dr. Konstantinos Tatas FLOATING-POINT NUMBER REPRESENTATION ACOE161 - Digital Logic for Computers - Frederick University

  2. The range/accuracy problem • The range of numbers that can be represented with n bits is • In 2’s complement: from - /2 to /2 -1 • For n=8: From –128 to +127 • For n=16: From –32,768 to +32,767 • Still, in many application an even larger range is required ACOE161 - Digital Logic for Computers - Frederick University

  3. Real numbers • Instead of representing the actual value, in the base system, we represent the sign, M, b and e ACOE161 - Digital Logic for Computers - Frederick University

  4. FLOATING-POINT REPRESENTATION • IEEE short real: 8 bits for the exponent (in Ex-127), 23 bits for the mantissa • IEEE long real: 11 bits for the exponent, 52 bits for the mantissa ACOE161 - Digital Logic for Computers - Frederick University

  5. RESERVED VALUES ACOE161 - Digital Logic for Computers - Frederick University

  6. Examples (IEEE short real format) ACOE161 - Digital Logic for Computers - Frederick University

  7. Homework • Convert the following 2’s complement values to IEEE short real floating-point representation • 10011010 • 0110.0101 • 0.1111110 • 1100.0001 ACOE161 - Digital Logic for Computers - Frederick University

More Related