I should be getting normal numbers, since I am just computing an interest rate.
[code]
float invContComp = (inInvest)*pow(2.71828,(intRate*numQuarter1));
cout<<"Value of your same investment but continously compounded is "<<invContComp<<" dollars.";
float profit2 = (invContComp-inInvest);
cout<<"Profit from this investment is "<<profit2<<" dollars.";
cout<<" "<<endl;
float difference = (profit2-profit);
cout<<"The difference between both investment types is "<<difference<<" dollars.";
This is my output
Value of your same investment but continously compounded is inf dollars.Profit from this investment is inf dollars.
The difference between both investment types is inf dollars.