← Back to Course

Lesson 46: Multiplying fixed-point numbers with the same scaling factor

Practice Questions

Question 1: Fixed-point number `x` has a stored value of 302. Fixed-point number `y` has a stored value of 300000. Both have a scaling factor of 1e18. What is the stored value of their product, assuming the same scaling factor?

Question 2: Fixed-point number `x` has a stored value of 34000000. Fixed-point number `y` has a stored value of 2000000. Both have a scaling factor of 1e6. What is the stored value of their product, assuming the same scaling factor?

Question 3: Fixed-point number `x` has a stored value of 12345678. Fixed-point number `y` has a stored value of 987654321. Both have a scaling factor of 1e8. What is the stored value of their product, assuming the same scaling factor?

Question 4: Fixed-point number `x` has a stored value of 1000000000000000. Fixed-point number `y` has a stored value of 10000000000000000000000. Both have a scaling factor of 1e18. What is the stored value of their product, assuming the same scaling factor?

Question 5: Fixed-point number `x` has a stored value of 512. Fixed-point number `y` has a stored value of 204. Both have a scaling factor of 100. What is the stored value of their product, assuming the same scaling factor?