return question for method
Ok, I am a little confused here as to what I can do to return an int called num.
I have to return it to make the program work to the professors specifications, but it is confusing. here is the header:
I cant return this "int num" because all equations are in a double.
public static int solve(double  eqn, double  roots)
I keep getting the error "Cant change result from int to double/int"
How do you guys switch from a double to an int? I assume you use variables, right?