Chapter 2: Floating Point Numbers and Rounding Flashcards
What is truncation?
Dropping unwanted bits, rounding toward zero, rounding down
What is rounding toward +- infinity?
rounding up, essentially rounding to the nearest possible floating-point number while increasing the magnitude
What is rounding to the nearest?
rounding to the closest possible floating-point number irrespective of direction
What is normalization?
When a number is made such that there is only one non-zero digit leading the radix point and an exponent is made to compensate the shifting of the radix point
Explain how to normalize a fractional binary value
A
What is the Significand also called?
Mantissa
What is the significand/mantissa?
The significant bits of a normalized number
What is the significand/mantissa represented in?
sign and magnitude format (leading bit is the sign bit)
How many unique zeros are there in IEEE-754 format?
2:
00000000000000000000000000000000) and (10000000000000000000000000000000
What is the general bias of 32-bit IEEE-754 format?
127
What does the leading bit of IEEE-754 format represent?
The sign
What do the 8 bits after the first bit represent in IEEE-754 format?
The biased exponent
What do the final 23 bits in IEEE-754 format represent?
The fractional bits
When normalizing a binary number for IEEE-754 format, what is removed?
The leading 1 to the left of the radix point
If every digit but possibly not the first is a 0 in IEEE-754 format, the number is:
+- zero