Float Point representaion Flashcards

(5 cards)

1
Q

Rule1

A

The order of evaluation can affect the accuracy of the result.

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

Rule2

A

Whenever subtracting two numbers with the same signs or adding two numbers
with different signs, the accuracy of the result may be less than the precision avail-
able in the floating-point format:

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

Rule3

A

When performing a chain of calculations involving addition, subtraction,
multiplication, and division, try to perform the multiplication and division
operations first:
x × (y + z) === x × y + x × z

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

Rule4

A

When multiplying and dividing sets of numbers, try to multiply and divide numbers that have the same relative magnitudes.

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

Rule5

A

When comparing two floating-point numbers for equality, always compare the values to see if the difference between two values is less than some small error value.

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