Normalisation Flashcards
What is meant by a real number?
A number with a fractional part
What are the two different ways we can write down a real number in denary?
Simple representation or Scientific Notation
Which method is best with dealing in very large/small numbers?
Scientific Notation
What is another name for scientific notation?
Exponential Notation
Binary code has to store real numbers in computer systems. What are the two possible methods for this?
Fixed Point Representations
Floating Point Representation
State what is meant by fixed point representation?
An overall number of bits is chosen with a defined number of bits for the whole number part and the remainder for the fractional part.
State what is meant by floating-point representation?
A defined number of bits are used for what is called the mantissa.
The remaining bits are used for the exponent.
The R is the base (2).
+M x RE
How does fixed point store a number using fixed point representation?
Most Significant Bit = Sign
5 bits = whole number
2 bits = fraction
How does floating-point representation store a number?
select appropriate number of bits for mantissa and exponent in 2s complement
How is the mantissa stored?
Fixed point value
How is the exponent stored?
Signed integer
How many bits does an exponent have?
8-bit (signed) / 127 bits
How many bits does the mantissa have?
23-bit fraction
What are the steps for converting a denary number using single precision? i.e. 51.7
Take the 51 and divide it by 2. Ensure you are collecting all the remainders. 51/2 = 25 r 1 25/2 = 12 r 1 12/2 = 6 r 0 6/2 = 3 r 0 3/2 = 1 r 1 1 / 2 = 0 r 1 = 110011 (write the binary backwards) 2. Take the .7 and x2 7x2 = 14 1 4x2 = 08 0 Done as we have reached 0
110011.1 is our mantissa
3.Move decimal point to furthest 1…
1.100111 = 5dcp
4. add the dcp to 127 = 132
5. Turn 132 into binary =
10000100 = exponent
6. (sign)01000100.1001110000000000000000000000 (32 BIT) is our answer as we combined the exponent and the mantissa
How does the mantissa and the exponent affect precision?
The greater the mantissa bits = the larger the number you can store, but the least accurate it would be.
The greater the exponent number of bits = the smaller the number range you can store, but the more accurate the number would be (more numbers after the DCP)