Effect(NominalRate: Double; PeriodCount: Integer): Double;
Effect(NominalRate: double; PeriodCount: integer): double;
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. |
The Effect method returns effective annual percentage rate.
Effect is calculated using the following formula:
To execute the example, add a link to the MathFin system assembly.
Sub UserProc;
Var
r: Double;
Begin
r := Finance.Effect(0.25, 4);
Debug.WriteLine(r);
End Sub UserProc;
After executing the example the console window displays effective annual percentage rate equal to 0.2744.
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.25, 4);
System.Diagnostics.Debug.WriteLine(r);
End Sub;
See also: