Professional Documents
Culture Documents
Scientic notation:
19 1 10 602 .
sign signicand base exponent
Special Quantities
is returned when an operation overows x/ = 0 for any number x, x/0 = for any nonzero number x Operations with innity are dened as limits, e.g. 4 = lim 4 x =
x
Examples: , /, 0/0,
1, NaN x
Denormalized Numbers
With normalized signicand there is a gap between 0 and emin This can result in x y = 0 even though x = y , and code fragments like if x = y then z = 1/(x y ) might break Solution: Allow non-normalized signicand when the exponent is emin This gradual underow garantees that x = y x y = 0
Represented number:
Special cases:
0 emin emin +1 emin +2 emin +3
E = 255
NaN
M =0
emin
emin +1
emin +2
5
emin +3
1.0 = 2
emax emin
Smallest normalized Largest normalized
126
2127 1038
10
38
machine
224 6 108
The result of an operation using oating point numbers is (a b) If (a b) is the nearest oating point number to a b, the arithmetic
rounds correctly (IEEE does), which leads to the following property: For all oating point x, y , there exists with ||
x y = (x y )(1 + )
For information about citing these materials or our Terms of Use, visit: http://ocw.mit.edu/terms.