我試圖計算以下情形每月支付:爲什麼德爾福Math.Payment函數返回一個負數
$ 5,000的$ 1,000每月複利8.00%,由於在年底借3年期限。
/*
From Math.pas
function Payment(Rate: Extended;
NPeriods: Integer;
const PresentValue: Extended;
const FutureValue: Extended;
PaymentTime: TPaymentTime): Extended;
*/
var
Pmt : Extended;
begin
Pmt := Payment(0.08/12,36,5000,1000,ptEndOfPeriod);
Edit1.Text := FloatToStr(Pmt);
end
結果= -181.351526101918
的結果是正確的,除了它是負的。
爲什麼Payment函數的結果返回一個負數?