




Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!





CS/CoE0447: Computer Organization and Assembly Language (^) University of Pittsburgh 12
We can add a “point” in binary notation:
CS/CoE0447: Computer Organization and Assembly Language (^) University of Pittsburgh 14
Example floating-point numbers (base-10)
CS/CoE0447: Computer Organization and Assembly Language (^) University of Pittsburgh 18
Let’s try 15.
Single Precision Double Precision Represented Object Exponent Fraction Exponent Fraction 0 0 0 0 0 0 non-zero 0 non-zero +/- denormalizednumber 1~254 anything 1~2046 anything +/- floating-pointnumbers 255 0 2047 0 +/- infinity 255 non-zero 2047 non-zero NaN (Not a Number)
CS/CoE0447: Computer Organization and Assembly Language (^) University of Pittsburgh 20
Smallest normal (leading 1 is implicit ): 1.0× 2 Emin Below, use “denormal” (no leading 1): 0.f× 2 Emin e = Emin–1 , f != 0 #00000000####################### e.g., smallest without denormal 1.00000000000000000000000 x 2Emin smallest with denormal 0.00000000000000000000001 x 2- Emin- CS/CoE0447: Computer Organization and Assembly Language (^) University of Pittsburgh 21
Not a Number Result of illegal computation
CS/CoE0447: Computer Organization and Assembly Language (^) University of Pittsburgh 24
Overflow
(Example) 0.5ten – 0.4375ten =1.000two× 2 -1^ – 1.110two× 2 -
1. Align binary points 2. Add significands 3. Normalize result
CS/CoE0447: Computer Organization and Assembly Language (^) University of Pittsburgh 26
(Example) (1.000two× 2 -1)×(-1.110two× 2 -2)
**1. Compute exponents