Chapter 7

ajd chapter 7
Use Math.floor(Math.PI) instead of Math.PI to solve your precision issues.