13.3 Floating-point numbers, representation and manipulation Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

Convert this binary floating point number into denary

Mantissa: 01011010
Exponent: 00000100

A

11.25

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

10 bit Mantissa
6 bit Exponent

Both two’s complement.
Calculate -7.25 in this system.

A

Mantissa: 1000110000
Exponent: 000011

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Two’s complement system. Calculate denary value of given binary floating-point number.

Mantissa: 1011000111
Exponent: 000111

A
  • 78.25
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What does changing Mantissa vs Exponent do?

A
Mantissa = Precision
Exponent = Range
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Normalize the two’s complement floating-point number.

Mantissa: 0000000111
Exponent: 100111

A
Mantissa = 0111000000
Exponent = 100001
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Two’s complement form.

12 bit Mantissa. 4 bit Exponent.

Represent +2.5 in floating-point representation.

A
Mantissa = 010100000000
Exponent = 0010
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Two’s complement form.

12 bit Mantissa. 4 bit Exponent.

Represent -2.5 in floating-point representation.

A
Mantissa = 101100000000
Exponent = 0010
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What makes a floating-point system normalized?

A

The first two bits should be different.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Write the largest possible number that can be represented with an 8 bit Mantissa and 4 bit Exponent.

A
Mantissa = 01111111
Exponent = 0111
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Write the smallest positive number that can be represented with an 8 bit Mantissa and 4 bit Exponent.

A
Mantissa = 01000000
Exponent = 1000
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q
A student enters the following code into an interpreter.
X = 0.1
Y = 0.2
Z = 0.3
OUTPUT (X + Y + Z)

The student is surprised to see the output:
0.6000000000000001
Explain why this is output.

A
  • As these numbers cannot be represented exactly in binary as there are rounding errors
  • Adding two or more of these inaccurate representations increases the probability of inaccuracy.
  • Which may give an answer where the different added inaccuracies can be large enough to be seen.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

………………………………………… can occur in the exponent of a floating-point number, when the exponent has become too large to be represented using the number of bits available.

A

Overflow

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

A calculation results in a number so small that it cannot be represented by the number of bits
available. This is called …………………………………………

A

Underflow

How well did you know this?
1
Not at all
2
3
4
5
Perfectly