DATA REPRESENTATION AND NUMBER SYSTEMS
TWOS COMPLEMENT AND FLOATING POINT REPRESENTATION
|
Question
[CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
|
|
|
01
|
|
|
10
|
|
|
Either A or B
|
|
|
None of the above
|
Detailed explanation-1: -A normalised positive number always starts as 0, point, 1, 0.1. A normalised negative number always starts as 1, point, 0, 1.0.
Detailed explanation-2: -Forms of-5 The normalized floating-point representation of-5 is-1 * 0.5 * 10 1. In other words, a normalized floating-point number’s mantissa has no non-zero digits to the left of the decimal point and a non-zero digit just to the right of the decimal point.
Detailed explanation-3: -Eight digits are used to represent a floating point number : two for the exponent and six for the mantissa. The sign of the mantissa will be represented as + or-, but in the computer it is represented by a bit: 1 means negative, 0 means positive. This representation makes it easy to compare numbers.
Detailed explanation-4: -In each case, we have 223 distinct floating-point numbers because the mantissa is made of 23 bits. So we have 126 x 223 normal floating-point numbers in [0, 1).