← Back to Course

Lesson 16: Rounding Down Disallowed Constants

Practice Questions

Question 1: What should we change the numerator in 2 ether / 1 hours to such that the code compiles as a constant?

Question 2: What should we change the numerator in 100_000 / 30 minutes to such that the code compiles as a constant?

Question 3: What should we change the numerator in 1e27 / 1 weeks to such that the code compiles as a constant?

Question 4: What should we change the numerator in 100 ether / 30 to such that the code compiles as a constant?

Question 5: What should we change the numerator in 1000 gwei / 12 seconds to such that the code compiles as a constant?