Good afternoon:
I'm making a Nominal Rate formula for that they gave me this formula:
= (((TEA + 1) ^ (1/12)) - 1) * 12
decimal x = 3.141592654M ;
double pi = (double) x ;
dtorequest.Tasa = Convert.ToDecimal((Math.Pow((Convert.ToDecimal(pi) + 1), (1 / 12))) - 1) * 12;//40;
Since my dtorequest.Tasa is a decimal variable, I get a decimal error. Could you help me please?
An example: