By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,436 Members | 2,979 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,436 IT Pros & Developers. It's quick & easy.

Problem with POW

P: 1
Guys I'm having hard time with this function, please help me

amount = (principal * (pow ((1 + interestRate / timesCompound),timesCompound)));
Attached Images
File Type: jpg pow.jpg (109.8 KB, 28 views)
Jun 3 '19 #1
Share this Question
Share on Google+
3 Replies

P: 119
Possibly logical errors in the code, producing unexpected outputs. Refer here for the formulas.
Jun 4 '19 #2

Expert Mod 5K+
P: 5,397
Read thru the FAQ section on how to properly ask a question.

you need to explain what you are trying to do

what you have tried to fix the problem

maybe an example with what you have, what you are getting, and what you were expecting
Jun 4 '19 #3

P: 10
maybe (just maybe) you need to change all the variables to double cause in int things like 7/8 is equal to 0
Jul 9 '19 #4

Post your reply

Sign in to post your reply or Sign up for a free account.