IFinance.Effect

Fore Syntax

Effect(NominalRate: Double; PeriodCount: Integer): Double;

Fore.NET Syntax

Effect(NominalRate: double; PeriodCount: integer): double;

Parameters

Parameters Description Constraints
NominalRate Nominal annual interest rate. Cannot be negative.
PeriodCount The number of periods in a year, for which compound interest is calculated. Must be positive.

Description

The Effect method returns effective annual percentage rate.

Comments

Effect is calculated using the following formula:

Fore Example

To execute the example, add a link to the MathFin system assembly.

Sub UserProc;
Var
    r: Double;
Begin
    r := Finance.
Effect(0.254);
    Debug.WriteLine(r);
End Sub UserProc;

After executing the example the console window displays effective annual percentage rate equal to 0.2744.

Fore.NET Example

The requirements and result of the Fore.NET example execution match with those in the Fore example.

Imports Prognoz.Platform.Interop.MathFin;

Public Shared Sub Main(Params: StartParams);
Var
    r: double;
    Finance: FinanceClass = New FinanceClass();
Begin
    r := Finance.Effect(0.254);
    System.Diagnostics.Debug.WriteLine(r);
End Sub;

See also:

IFinance