← Back to Course

Lesson 40: Adding an integer to a fixed-point number to get a fixed-point number

Practice Questions

Question 1: Let `a` be a fixed-point number 0.1 with scaling factor 10¹⁸. Let `b` be the integer 1. If we add `a` and `b` together and represent the sum as a fixed-point number with a scaling factor of 10¹⁸, what is the stored value of the result?

Question 2: Let `a` be a fixed-point number 47.48 with scaling factor 10⁶. Let `b` be the integer 10. If we add `a` and `b` together and represent the sum as a fixed-point number with a scaling factor of 10⁶, what is the stored value of the result?

Question 3: Let `a` be a fixed-point number 24 with scaling factor 10⁶. Let `b` be the integer 10. If we add `a` and `b` together and represent the sum as a fixed-point number with a scaling factor of 10⁶, what is the stored value of the result?

Question 4: Let `a` be a fixed-point number 2.4 with scaling factor 10⁹. Let `b` be the integer 3. If we add `a` and `b` together and represent the sum as a fixed-point number with a scaling factor of 10⁹, what is the stored value of the result?

Question 5: Let `a` be a fixed-point number 200.1 with scaling factor 10¹⁵. Let `b` be the integer 10. If we add `a` and `b` together and represent the sum as a fixed-point number with a scaling factor of 10¹⁵, what is the stored value of the result?