In the methods which return doubles the solution multiplies int a by 1.0. Why is the necessary?