Floating point numbers Flashcards

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

What are the two different components of a floating point number, giving any rules where necessary.

A

Mantissa: value between –1 and 1 in two’s compliment; 2 most significant bits must be different; implied binary point is after the most significant bit

Exponent: integer value in two’s compliment

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

What will happen if you increase the number of bits in the mantissa

A

Increase the precision of the represented value (allow for smaller fractional values)

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

What will happen if you increase the number of bits in the exponent

A

Increase the possible range of representable values

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

represent the largest positive value of a normalised floating point number with 10-bit mantissa and 6-bit exponent

A

Largest positive mantissa, greatest positive exponent:

0111111111 011111

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

represent the smallest positive value of a normalised floating point number with 10-bit mantissa and 6-bit exponent

A

Smallest positive mantissa, greatest negative exponent:

0100000000 100000

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

What are the two oppositely big and small normalised floating point numbers

A

Largest negative mantissa, greatest positive exponent:

1000000000 011111

Smallest positive mantissa, greatest negative exponent:

0100000000 100000

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

represent the smallest magnitude negative value of a normalised floating point number using a 10-bit mantissa and 6-bit exponent

A

Smallest negative mantissa, greatest negative exponent:

1011111111 100000

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

What are two advantages of normalizing numbers

A
  • Increases precision for a given number of bits
  • Gives a unique representation of each value
How well did you know this?
1
Not at all
2
3
4
5
Perfectly