Click here to Skip to main content
15,891,943 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
I have to calculate power concept.

v = (1)/ (1+i) pow(n-1)

how to calculate this using math.pow
Posted

Hi,

Have you tried to search in google for this ? this[^] is really good link to understand Pow function.

Even you can refer MSDN for that. Hope this links will resolved your issue.

Let us know your concern.

Best luck.
 
Share this answer
 
ya i got answer
double rate = 1 / (1 + double.Parse(TxtDiscountRate.Text.ToString()));
double discountrate = Math.Pow(rate, y - 1);
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900