拜托,我这里有这个公式:
=((r/100/12)*amt)/(1-((1+(r/100/12)^(-period)))
有人可以帮助我如何将其转换为目标 c 的公式吗?我需要最终公式..
我用什么:
double int_ = ([Norma_value floatValue]/100)/12;
double months = -[kohezgjatja_value floatValue];
double r1 = pow(int_, months);
double pt1 = 1 + r1;
double pt2 = 1- pt1;
double pmt = ([shuma_value floatValue]* int_)/pt2;
balanca.text = [NSString stringWithFormat:@"%.02f €",pmt];