COMP 350 Study Guide - Emar, Nan, Cuil

94 views4 pages

Document Summary

Rational numbers - all of the real numbers which consist of a ratio of two integers. Irrational numbers - most real numbers are not rational, i. e. there is no way of writing them as the ratio of two integers. Familiar examples of irrational numbers are: pi, e. If the representation of a rational number is in nite, it must be repeating. e. g. 1/7 = (0. 142857142857 . Irrational numbers always have in nite, non-repeating expansions. e. g. ieee. A 32-bit word is divided into 3 elds: sign eld: 1 bit ( 0 for positive, 1 for negative), exponent eld: 8 bits for e, signi cand eld: 23 bits for m. The number of bits in the signi cand (including the hidden bit) is called the precision of the. In the single format system, p = 24. The gap between the number 1 and the next larger oating point number is called the machine epsilon of the oating point system, denoted by .