IEEE 754 Floating Point Flashcards
What is the most common representation for real numbers on computers?
IEEE Standard 754 floating point
What form does floating point encode rational numbers/values?
V = x × 2^y
What types of computations is floating point useful for?
- Very large numbers: |V|»_space; 0
- Numbers very close to 0: |V| «_space;1
- Approximation to real numbers
What is the bit size of single precision in floating point representation?
32 bits
What is the bit size of double precision in floating point representation?
64 bits
What is the range of single precision floating point?
+/- 2^-149 to +/- 2^127
What is the range of double precision floating point?
+/- 2^-1074 to +/- 2^1023
What does overflow mean in floating point representation?
Values have grown too large for the representation
What does underflow mean in floating point representation?
A value too small to be represented, resulting in a loss of precision
What is a characteristic of real numbers in floating point representation?
Having a decimal portion that is not necessarily equal to 0
How is the decimal number 123.14 represented in base 10?
110^2 + 210^1 + 310^0 + 110^-1 + 4*10^-2
What is the digit format for a decimal number?
dmdm-1…d1d0.d-1d-2…d-n
How is a binary number like 110.11 represented in base 2?
12^2 + 12^1 + 02^0 + 12^-1 + 1*2^-2
What is the digit format for a binary number?
bmbm-1…b1b0.b-1b-2…b-n
What happens when you shift the binary point one position left?
Divides the number by 2
What happens when you shift the binary point one position right?
Multiplies the number by 2
True or False: Numbers like 0.111…11 base 2 can represent numbers just below 1.
True
What type of numbers can fractional binary notation represent exactly?
Rational numbers with denominators that are powers of 2
What is an example of a number that cannot be represented exactly in binary?
1/3 and 5/7
What is the general form for numbers that can be represented in fractional binary notation?
x * 2^y (for integers x and y)
How can increasing accuracy be achieved in binary representation?
By lengthening the binary representation
Fill in the blank: Only finite-length encodings can be stored; ______ and 5/7 cannot be represented exactly.
1/3
What is the typical format for a number in scientific notation?
Only 1 digit to the left of the decimal point
Example: 6.385 * 10^4 equals 63,850