お願いします、私はここにこの式を持っています:
=((r/100/12)*amt)/(1-((1+(r/100/12)^(-period)))
誰かがObjectiveCの式に変換する方法を教えてもらえますか?最終的な式が必要です。
私が使用するもの:
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];