Mantissa and exponent, both in two's complement. Toggle the bits, type a number, then step through each conversion the way you would write it in the exam. A Level Computer Science, OCR H446, section 1.4.1 (e) and (f).
Example with 8 and 4 bits: 0.1011000 × 20011 = 0.6875 × 8 = 5.5
0.1 (positive) or 1.0 (negative). The first two bits differ.1.1, shift it left once and subtract 1 from the exponent.0.1 or 1.0: the first two bits differ.0.1 or 1.0.The exponent bits decide the range (how big and how small a number can be). The mantissa bits decide the precision (how close together the representable numbers are). With a fixed number of bits in total, every bit given to one is taken from the other.
Questions use the bit widths chosen at the top of the page. Bits can be typed with or without spaces and the point.
Press New question to start.