Representation and normalisation of floating point numbers in binary.
1.4.1 Data Types
Data Types — Note 7 of 10
Candidates should have an understanding of how (positive and negative) real numbers are represented in a binary floating-point representation, and should be able to convert between a denary number and a real binary number. (NB the representation used for the exam is the mantissa and exponent both represented using two’s complement.) Candidates should understand the need for normalised floating point numbers. Candidates should be able to normalise a floating point number.
Floating point represents real numbers using a mantissa and an exponent, like standard form in maths. In the OCR exam, both the mantissa and the exponent are stored in two's complement. Numbers are normalised to give the greatest possible precision.
0.1; a normalised NEGATIVE number starts 1.0.Exam tipCommon mistake
The part of a floating point number holding its significant digits. In OCR exams it is a two's complement fixed point number with the binary point after the first bit.
-1 . 1/2 1/4 1/8 1/16 ....A two's complement integer saying how many places to move the binary point: right if positive, left if negative.
Adjusting the mantissa and exponent so the mantissa uses as many significant bits as possible, maximising precision for the number of bits available.
Positive: mantissa 0.1010000, exponent 0011 (= 3)
move point 3 right: 0101.0000 = 4 + 1 = 5
Negative: mantissa 1.0110000, exponent 0010 (= 2)
move point 2 right: 101.10000
= -4 + 1 + 0.5 = -2.5
Normalising: mantissa 0.0011000, exponent 0101 (= 5)
shift mantissa left 2 places -> 0.1100000
exponent 5 - 2 = 3 -> 0011
value unchanged: 6