Problem with POW

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • maddy1010
    New Member
    • Jun 2019
    • 1

    Problem with POW

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

    amount = (principal * (pow ((1 + interestRate / timesCompound), timesCompound)) );
    Attached Files
  • dev7060
    Recognized Expert Contributor
    • Mar 2017
    • 656

    #2
    Possibly logical errors in the code, producing unexpected outputs. Refer here for the formulas.

    Comment

    • zmbd
      Recognized Expert Moderator Expert
      • Mar 2012
      • 5501

      #3
      maddy1010
      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

      Comment

      • chrimpylimes
        New Member
        • Jul 2019
        • 10

        #4
        maybe (just maybe) you need to change all the variables to double cause in int things like 7/8 is equal to 0

        Comment

        Working...