我在哪里可以找到适合英国业务的良好 APR 计算器功能..
问问题
1879 次
1 回答
0
private double GetAPR()
{
int i = 0;
for (;;)
{
apr = (rate*((Math.Pow((1 + rate), duration))) /
((Math.Pow((1 + rate), duration)) - 1)) -
(installment/(loanamount - extracost));
if (apr >= 0)
{
lblapr.Text = apr.ToString() + " + " + i.ToString();
break;
}
else
{
i++;
rate = rate*1200;
rate = Math.Round(rate, 3);
rate = rate + 0.01;
rate = rate/1200;
}
}
return rate;
}
于 2012-03-03T12:06:28.873 回答