Lecture 6: Decimal Real Numbers Flashcards
Name two ways to represent decimal real numbers in for computing purposes.
Fixed point binary and IEEE 754 standard.
Explain exponent-mantissa format and normalised form.
Having a mantissa multiplied by an exponent and normalised form is the same but explicitly with only one non-zero digit to the left of decimal point.
What are hte drawbacks of fixed-point binary?
Uses up lots of bits.
How is the 32-bit IEE standard broken up?
- 1-bit sign for mantissa
- 8-bit exponent
- 23-bit mantissa
What notation is used for storing exponent? Explain it.
Excess 127.
E.g. 130. 130-127 = 3. Exponent is 3.
125. 125-127 = -2. Exponent is -2.
For excess 127 notation, what do 0 and 255 represent?
0, infinity and NaN, respectively. Infinity and NaN are both exponent 255 but infinity is mantissa = 0 and NaN is any non zero number.