System.Math.InterestRate

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function InterestRate(NPeriods: Integer; const Payment, PresentValue, FutureValue: Extended; PaymentTime: TPaymentTime): Extended;

C++

extern DELPHI_PACKAGE System::Extended __fastcall InterestRate(int NPeriods, const System::Extended Payment, const System::Extended PresentValue, const System::Extended FutureValue, TPaymentTime PaymentTime);

Properties

Type Visibility Source Unit Parent
function public
System.Math.pas
System.Math.hpp
System.Math System.Math

Description

Returns the interest rate required to increase PresentValue to FutureValue.

InterestRate calculates the interest rate required in order for an investment of PresentValue, with periodic payments of Payment, to be worth FutureValue within NPeriods compounding periods. If NPeriods represents years, an annual interest rate results; if NPeriods represents months, a monthly interest rate results, and so on. The PaymentTime parameter indicates whether the cash flows occur at the beginning or end of the period.

See Also