Question: I have a compound interest program here. I included Math.round, but my answers keep coming out with long answers of many numbers after the decimal.

I have a compound interest program here. I included Math.round, but my answers keep coming out with long answers of many numbers after the decimal. Can you tell me why Math.round isn't rounding the numbers; and if I use toFixed(2) where would I put it? My code is below.

Compound Interest

Balance:

Annual growth rate:

Number of months:

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!