Floating point numbers Flashcards
What are the two different components of a floating point number, giving any rules where necessary.
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
What will happen if you increase the number of bits in the mantissa
Increase the precision of the represented value (allow for smaller fractional values)
What will happen if you increase the number of bits in the exponent
Increase the possible range of representable values
represent the largest positive value of a normalised floating point number with 10-bit mantissa and 6-bit exponent
Largest positive mantissa, greatest positive exponent:
0111111111 011111
represent the smallest positive value of a normalised floating point number with 10-bit mantissa and 6-bit exponent
Smallest positive mantissa, greatest negative exponent:
0100000000 100000
What are the two oppositely big and small normalised floating point numbers
Largest negative mantissa, greatest positive exponent:
1000000000 011111
Smallest positive mantissa, greatest negative exponent:
0100000000 100000
represent the smallest magnitude negative value of a normalised floating point number using a 10-bit mantissa and 6-bit exponent
Smallest negative mantissa, greatest negative exponent:
1011111111 100000
What are two advantages of normalizing numbers
- Increases precision for a given number of bits
- Gives a unique representation of each value