Floating Point Flashcards
1
Q
Explain how multiplication/division is computed.
A
2
Q
Explain the following(regarding addition/substraction):
- Alignment
- Normalize and round
A
Alignment:
- Make the two numbers to have the same exponent.
- We do that by changing the smaller exponent.
- Num1 exp = 2 Num2 exp = 4.
- we change Num1 to have exp 4
- Num1 exp = -2 Num2 exp = -4
- we change Num2 to have exp -2.
- Num1 exp = 2 Num2 exp = 4.
Normalize and round:
- Normalize
- Make the number to be of the form 1.<digits></digits>
- add to the normalize number 0.<digits>5</digits>
- return the sum with the form 1.<digits></digits>
3
Q
Describe the module of addition/substraction
A
4
Q
A