← Back to Course

Lesson 54: Integers divided by fixed-point numbers

Practice Questions

Question 1: Divide integer 20 by a fixed-point number with stored value 4000000000000000000 and scaling factor 1e18, producing a result with scaling factor 1e18. What is the stored value?

Question 2: Divide integer 100 by a fixed-point number with stored value 25000000 and scaling factor 1e6, producing a result with scaling factor 1e6. What is the stored value?

Question 3: Divide integer 7 by a fixed-point number with stored value 2000 and scaling factor 100, producing a result with scaling factor 1000. What is the stored value?

Question 4: Divide integer 1 by a fixed-point number with stored value 2000000000000000000 and scaling factor 1e18, producing a result with scaling factor 1e18. What is the stored value?

Question 5: Divide integer 50 by a fixed-point number with stored value 10000000000000000000 and scaling factor 1e18, producing a result with scaling factor 1e6. What is the stored value?