Some formula
PV = FV / (1+r)n this is my formula .From this i want to calculate r vaue through c# ,i have values for PV,FV ,n could you please tell me how to do that in c#
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Jignesh TrivediPosted Oct 29, 2013, 2:05 AM
from this equation
r = (FV/PV)1/n- 1
so in C#
double FV = 100.45;
double PV = 23.34;
int n = 5;
var r = Math.Pow((FV / PV) , (1 / (double)n)) - 1;
hope this will help you.
Sasi ReddyPosted Oct 29, 2013, 2:16 AM