Pow functions with int/partial fraction

hey guys I need help with a part of a problem where I have to use pow functions to find a car payment.
I understand the basic concept of pow(3,3) = 3^3 = 27.
The problem I have is when the base has a partial fraction mixed with an integer.
p= mortgage
n= number of years
r= rate
m = loan ammount
The formula is: p = m * (1 + r/12)^(12 * n)


This is what I have:
 
 p = m * pow(1+ r/12, 12*n);
Did you try: p = m * pow(1.0 + r/12.0, 12.0*n); ?
nevermind. I got it. I was just checking my math wrong. Thanks guatemala.
sure, here to help, just remember to mark your question as solved if your finished with it.
Topic archived. No new replies allowed.