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#
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Jignesh TrivediRank #16 · 50.3K reputationPosted Oct 28, 2013, 10:05 PM EDT
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 ReddyRank #4,458 · 342 reputationPosted Oct 28, 2013, 10:16 PM EDT