Floating Point Numbers Flashcards

1
Q

what are floating point numbers

A

location of the decimal point moves around

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

why are floating points needed

A

computer memory is limited, you cannot store numbers with infinite precision

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

what are the two parts to a floating point number

A
  • significant - contains the numbers digits
    exponent - where the deciomal point is placed relative to the beginning of the number
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

give 2 limitaions of floating point numbers and explain them

A
  • overflow - the results of a calculation is a number that is too large to store
  • underflow - floating point calculation can produce a result that is so close to zero that the closest possible representation is zero
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

what is absolute error

A

expected value - value you got

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

what is relative error

A

absolute error / actual value

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