Quote (sarge799 @ Oct 13 2013 12:45pm)
Again, always use * to multiply.
Also you have several unneeded parenthesis.
Code
public static double calcMonthlyPayment( ) { // start calcMonthlyPayment
double P = getLoanAmount();
int N = getLoanLength();
double I = getInterestRate();
double M = P*((I*(1+I)^N)/(((1+I)^N-1)));
return M;
} // end calcMonthlyPayment
so now I have that, and now it says:
The operator ^ is undefined for the argument type(s) double, int